cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
fionaweston
Level III

JMP to MongoDB connection.

I am reading back to posts from 2019 that say there is not a native connection in JMP for mongo-db. Is this still the case?

Our ERP system runs Mongo DB and we'd like to connect to JMP (16). Is it possible yet?

Thanks

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: JMP to MongoDB connection.

Hi Fiona,

 

Access to Mongo through JMP will require an ODBC driver.  There are a variety out there, some of which you must pay for.  Once you set up the driver with your Mongo connection information you can use the JMP Query Builder or Database Open Table capabilities.  Most databases like Oracle or SQL Server require the same kind of preparation prior to importing data into JMP.

 

Brian Corcoran

JMP Development

View solution in original post

ih
Super User (Alumni) ih
Super User (Alumni)

Re: JMP to MongoDB connection.

You can also utilize R or python for this:

 

Names Default To Here( 1 );
R Init();
R Submit("
library(mongolite)
connection_string = 'mongodb+srv://<username>:<password>@<cluster-name>.mongodb.net/sample_training'
trips_collection = mongo(collection=\!"trips\!", db=\!"sample_training\!", url=connection_string)
trips_collection = mongo(collection=\!"trips\!", db=\!"sample_training\!", url=connection_string)
user_types = trips_collection$aggregate('[{\!"$group\!":{\!"_id\!":\!"$usertype\!", \!"Count\!": {\!"$sum\!":1}}}]')
df <- as.data.frame(user_types)
");

dt = R Get(df);
R Term();

Example R Syntax is from: https://www.mongodb.com/languages/mongodb-and-r-example

 

View solution in original post

2 REPLIES 2

Re: JMP to MongoDB connection.

Hi Fiona,

 

Access to Mongo through JMP will require an ODBC driver.  There are a variety out there, some of which you must pay for.  Once you set up the driver with your Mongo connection information you can use the JMP Query Builder or Database Open Table capabilities.  Most databases like Oracle or SQL Server require the same kind of preparation prior to importing data into JMP.

 

Brian Corcoran

JMP Development

ih
Super User (Alumni) ih
Super User (Alumni)

Re: JMP to MongoDB connection.

You can also utilize R or python for this:

 

Names Default To Here( 1 );
R Init();
R Submit("
library(mongolite)
connection_string = 'mongodb+srv://<username>:<password>@<cluster-name>.mongodb.net/sample_training'
trips_collection = mongo(collection=\!"trips\!", db=\!"sample_training\!", url=connection_string)
trips_collection = mongo(collection=\!"trips\!", db=\!"sample_training\!", url=connection_string)
user_types = trips_collection$aggregate('[{\!"$group\!":{\!"_id\!":\!"$usertype\!", \!"Count\!": {\!"$sum\!":1}}}]')
df <- as.data.frame(user_types)
");

dt = R Get(df);
R Term();

Example R Syntax is from: https://www.mongodb.com/languages/mongodb-and-r-example

 

Recommended Articles