本記事では CData サポート担当からこんなことを聞かれたらどこを確認すべきか?という観点で、よく頂くお問合せ内容をご紹介します。
記事はこちら →The CData ODBC Driver for CosmosDB can be used from any platform or development technology that supports ODBC, including Sybase PowerBuilder. This article shows how to connect to Cosmos DB data and execute queries from the Database Painter and controls such as the DataWindow.
Follow the steps below to use the Database Painter tool to create a database profile based on an ODBC DSN (data source name) for CosmosDB. In the Database Painter, you can use wizards and the UI to work with Cosmos DB data.
SQL API を使ってCosmos DB アカウントに接続するために必要な接続文字列を取得するには、Azure Portal にログインして「Azure Cosmos DB」を選択し、自分のアカウントを選択します。「Settings」セクションで、「Connection String」をクリックして次の値を設定します。
You can use standard PowerBuilder objects to connect to ODBC data sources and execute queries. The following example shows how to retrieve Cosmos DB data into a DataWindow. You can add the following code to the open method:
SQLCA.DBMS = "ODBC"
SQLCA.DBParm = "ConnectString='DSN=CData Cosmos DB Source'"
CONNECT USING SQLCA;
dw_customers.SetTransObject(SQLCA);
dw_customers.Retrieve();