Ready to get started?

Learn more about the CData ODBC Driver for Cosmos DB or download a free trial:

Download Now

DBArtisan でCosmos DB Data に連携

DBArtisan のウィザードを使って、Cosmos DB data をデータソースとして連携利用。

CData ODBC Driver for Cosmos DB は、DBArtisan などのデータベースツールとCosmos DB data を連携し、RDB のような感覚でCosmos DB データを扱えます。 本記事では、DBArtisan 上でCosmos DB データソースを作成する方法とクエリの実行方法を説明します。

DBArtisan Project にCosmos DB Data を連携する

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.

 
 
ダウンロード