CData JDBC Driver for AzureSynapse を使って、各種ツールからAzure Synapse データにアクセスすることが可能になります。本記事では、Azure Synapse データにRazorSQL のウィザードから連携利用する方法を紹介します。
Azure Synapse JDBC Data Source の設定
- RazorSQL アプリケーションを開いて、Connections メニューから、Add Connection Profile -> Other -> JDBC にナビゲートします。
- Connection Wizard で、以下を設定します:
- Driver Location:JDBC Driver のインストールディレクトリのlib サブフォルダに設定します。
- Driver Class: ドライバークラスを cdata.jdbc.azuresynapse.AzureSynapseDriver に設定します。
- Username:ユーザー名。(ユーザー名をブランクにして、JDBC URL 内で設定することも可能です。)
- Password:パスワード。(ユーザー名をブランクにして、JDBC URL 内で設定することも可能です。)
JDBC URL:接続パラメータを入力します:jdbc:azuresynapse: から始まるJDBC URL を入力します。接続プロパティをカンマ区切りで書きます。
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.
一般的な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 からテーブルを選択してクエリを実行
接続を確立後、Wizard が閉じ、接続はコネクションパネルで接続が利用可能になります。テーブルをクエリしてみます。