Windows DSN Configuration
After installing the driver, create a DSN for MongoDB in the ODBC Data Source Administrator.
- Open the ODBC Data Source Administrator.
- Type ODBC Data Sources in the Windows 10 search box and choose the ODBC Data Sources application that matches the bitness of your application (32-bit or 64-bit). You can also open ODBC Data Sources from Control Panel > Administrative Tools. Note that before Windows 8, the icon was named Data Sources (ODBC).
- Alternatively, you can run C:\Windows\SysWOW64\odbcad32.exe to create a 32-bit DSN or C:\Windows\System32\odbcad32.exe to create a 64-bit DSN.
- Select the User DSN or System DSN. Most applications work with any of them, yet some applications require a specific type of DSN.
- Click Add. The Create New Data Source dialog appears.
- Select Devart ODBC Driver for MongoDB and click Finish. The driver setup dialog opens.
- Enter the connection information in the appropriate fields.
- To test the connectivity, click Test Connection.
- Click OK to save the DSN.
Note: The driver requires that the libmongoc and libbson libraries must be available on the client machine. If the driver has not found these libraries on your machine or incompatible versions have been found, you can explicitly specify the paths to the libraries distributed with the driver in the Client Library and BSON Library properties:
- for the 64-bit driver: C:\Program Files (x86)\Devart\ODBC\MongoDB\Win64\libmongoc-1.0.dll and C:\Program Files (x86)\Devart\ODBC\MongoDB\Win64\libbson-1.0.dll, respectively;
- for the 32-bit driver: C:\Program Files (x86)\Devart\ODBC\MongoDB\Win32\libmongoc-1.0.dll and C:\Program Files (x86)\Devart\ODBC\MongoDB\Win32\libbson-1.0.dll, respectively.