Create a System DSN
On this page
Important
Feature unavailable in Serverless Instances
Serverless instances don't support this feature at this time. To learn more, see Serverless Instance Limitations.
The following steps describe how to create a system Data Source Name (DSN) for the BI Connector for Atlas. A DSN is a saved configuration which describes a database connection to be used by an ODBC driver. Once the DSN is created, you can configure a wide range of SQL clients and BI tools to use the DSN and import data from MongoDB.
Prerequisites
Before creating a DSN, you should:
Download and install Visual C++ Redistributable for Visual Studio 2015
Download and install the MongoDB ODBC Driver for BI Connector for your platform.
Procedure
Select a MongoDB ODBC driver from the list of available drivers.
Select either the MongoDB ODBC ANSI Driver or the MongoDB ODBC Unicode Driver, then click OK.
Note
ANSI ODBC/Connectors offer better performance but have a limited character set. Unicode ODBC/Connectors support a wider character set but may be less performant.
Fill in the necessary form fields.
Click the Details button to expose the lower half of the form.
The following form fields are required:
Field Name | Description | ||
---|---|---|---|
Data Source Name | A name of your choice. | ||
TCP/IP Server | The hostname specified in the Atlas connect dialog box. | ||
Port | The IANA
port number
specified in the Atlas connect dialog box. The default is
| ||
Database | The name of the database to which you want to connect. | ||
User | Enter either the user specified in the Atlas connect dialog box or another database user with access to the database. The user is specified in the following format:
where the
| ||
Password | The password that corresponds to the specified |
Select a MongoDB ODBC driver from the list of available drivers.
Select either the MongoDB ANSI ODBC driver or the MongoDB Unicode ODBC driver, then click OK.
Note
ANSI ODBC/Connectors offer better performance but have a limited character set. Unicode ODBC/Connectors support a wider character set but may be less performant.
Add the necessary keywords.
Click Add to add a keyword value pair.
Modify the Keyword by double-clicking on it, entering the desired keyword, then pressing enter.
Modify the Value by double-clicking on it, entering the desired keyword, then pressing enter.
Using the procedure above, add the following keywords:
Keyword | Value | ||
---|---|---|---|
SERVER | The hostname specified in the Atlas connect dialog box. | ||
PORT | The IANA
port number
specified in the Atlas connect dialog box. The default is
| ||
DATABASE | The database to use after connecting. This is required when connecting with Microsoft Excel. | ||
UID | The username for the user that can access the active Atlas database. For example, if the user
| ||
PWD | The password associated with the UID. |
For the complete list of ODBC parameters, see Connector/ODBC Connection Parameters.
Note
Do not close the setup window. Proceed to the next step.