製品をチェック

無償トライアル:

無償トライアルへ

製品の情報と無償トライアルへ:

Azure Synapse JDBC Driver

Azure Synapse データを組み込んだパワフルなJava アプリケーションを短時間・低コストで作成して配布できます。

データ連携でお困りですか?

お問い合わせ

IntelliJ からAzure Synapse データに連携


IntelliJ のウィザードを使用してAzure Synapse への接続を統合します。


azuresynapse ロゴ画像
jdbc ロゴ画像

JDBC

IntelliJ ロゴ画像

CData JDBC Driver for AzureSynapse を使用することで、JDBC データソースとしてAzure Synapse にアクセスでき、IDE の迅速な開発ツールとの統合が可能になります。この記事では、データソース構成ウィザードを使用してIntelliJ のAzure Synapse に接続する方法を示します。

JBDC Data Source for AzureSynapse の作成

以下のステップに従ってドライバーJAR を追加し、Azure Synapse への接続に必要な接続プロパティを定義します。

  1. [Data Sources]ウィンドウで右クリックし、[Add Data Source]->[DB Data Source]と進みます。
  2. 表示される[Data Source Properties]ダイアログでは、次のプロパティが必要です。

    • JDBC Driver Files:このメニューの隣にあるボタンをクリックし、インストールディレクトリのJDBC ドライバーファイル(cdata.jdbc.azuresynapse.jar)を追加します。
    • JDBC Driver Class:このメニューで、リストからcdata.jdbc.azuresynapse.AzureSynapse ドライバーを選択します。
    • Database URL:JDBC URL プロパティで接続URL を入力します。URL は、jdbc:azuresynapse: で始まり、セミコロンで区切られた接続プロパティが含まれています。

      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.

      ビルトイン接続文字列デザイナ

      JDBC URL の構成については、Azure Synapse JDBC Driver に組み込まれている接続文字列デザイナを使用してください。JAR ファイルのダブルクリック、またはコマンドラインからJAR ファイルを実行します。

      java -jar cdata.jdbc.azuresynapse.jar

      接続プロパティを入力し、接続文字列をクリップボードにコピーします。

      Using the built-in connection string designer to generate a JDBC URL (Salesforce is shown.)

      以下は一般的なJDBC URL です。

      jdbc:azuresynapse:User=myuser;Password=mypassword;Server=localhost;Database=Northwind;
The JDBC data source.(Salesforce is shown.)

Azure Synapse データの編集・保存

スキーマ情報を見つけるには、作成したデータソースを右クリックし、[Refresh Tables]をクリックします。 テーブルを右クリックし、[Open Tables Editor]をクリックして、テーブルをクエリします。 また、[Table Editor]でレコードを編集することもできます。

The results of a query in IntelliJ.(Salesforce is shown.)