cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

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