CData JDBC Driver for AzureSynapse は、Aqua Data Studio のようなIDE のウィザード・アナリティクスにAzure Synapse データを統合します。本記事では、Azure Synapse データをコネクションマネージャーに接続してクエリを実行する手順を説明します。
JDBC Data Source の設定
コネクションマネージャーで、新しいJDBC データソースとして、接続プロパティ設定を行い、保存します。Azure Synapse データがAqua Data Studio ツールから使えるようになります。
- Aqua Data Studio で、Server メニューから Register Server を選択します。
- Register Server フォームで、 'Generic - JDBC' コネクションを選びます。
- 次のJDBC 接続プロパティを設定します:
- Name:任意の名前、データソースの名前など。
- Driver Location:Browse ボタンをクリックして、インストールディレクトリのlib フォルダの cdata.jdbc.azuresynapse.jar ファイルを選択します。
- Driver:クラス名に cdata.jdbc.azuresynapse.AzureSynapseDriver を入力。
- URL:jdbc:azuresynapse: から始まるJDBC URL を入力します。接続プロパティをカンマ区切りで書きます。接続プロパティの詳細は、ヘルプドキュメントを参照してください。一般的な接続文字列は:
jdbc:azuresynapse:User=myuser;Password=mypassword;Server=localhost;Database=Northwind;
Connecting to Azure Synapse
In addition to providing authentication (see below), set the following properties to connect to a Azure Synapse database:
- Server: The server running Azure. You can find this by logging into the Azure portal and navigating to Azure Synapse Analytics -> Select your database -> Overview -> Server name.
- Database: The name of the database, as seen in the Azure portal on the Azure Synapse Analytics page.
Authenticating to Azure Synapse
Connect to Azure Synapse using the following properties:
- User: The username provided for authentication with Azure.
- Password: The password associated with the authenticating user.
Azure Synapse データにクエリを実行
接続したテーブルにクエリを実行してみます。