Ready to get started?

Download a free trial of the Cosmos DB ODBC Driver to get started:

 Download Now

Learn more:

Cosmos DB Icon Cosmos DB ODBC Driver

The Cosmos DB ODBC Driver is a powerful tool that allows you to connect with live Cosmos DB document databases, directly from any applications that support ODBC connectivity.

Access Cosmos DB like you would a database - read, write, and update through a standard ODBC Driver interface.

Connect to Cosmos DB Data in DBArtisan



Use wizards in DBArtisan to configure Cosmos DB data as a data source.

The CData ODBC Driver for Cosmos DB seamlessly integrates Cosmos DB data into database management tools like DBArtisan by enabling you to access Cosmos DB data as a database. This article shows how to create an data source for Cosmos DB in DBArtisan and execute queries. You can then edit data visually and execute standard SQL.

Integrate Cosmos DB Data into DBArtisan Projects

If you have not already, first specify connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs.

To obtain the connection string needed to connect to a Cosmos DB account using the SQL API, log in to the Azure Portal, select Azure Cosmos DB, and select your account. In the Settings section, click Connection String and set the following values:

  • AccountEndpoint: The Cosmos DB account URL from the Keys blade of the Cosmos DB account
  • AccountKey: In the Azure portal, navigate to the Cosmos DB service and select your Azure Cosmos DB account. From the resource menu, go to the Keys page. Find the PRIMARY KEY value and set AccountKey to this value.

You can then follow the steps below to register Cosmos DB data as a database instance in your project:

  1. In DBArtisan, click Data Source -> Register Datasource.
  2. Select Generic ODBC.
  3. Enter a name for the data source and select the DSN.
  4. Finish the wizard to connect to Cosmos DB data. Cosmos DB entities are displayed in the Datasource Explorer.

You can now work with Cosmos DB data as you work with any other database. See the driver help documentation for more information on the queries supported by the Cosmos DB API.