製品をチェック

無償トライアル:

無償トライアルへ

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

Azure Data Catalog JDBC Driver

Azure Data Catalog データに連携するJava アプリケーションを素早く、簡単に開発できる便利なドライバー。

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

お問い合わせ

Squirrel SQL Client からAzure Data Catalog データに連携


Azure Data Catalog に接続し、Squirrel SQL Client でクエリを実行します。


azuredatacatalog ロゴ画像
jdbc ロゴ画像

JDBC

SQuirreL ロゴ画像

CData JDBC Driver for AzureDataCatalog を使用して、Squirrel SQL Client などのツールでAzure Data Catalog へのクエリを実行できます。この記事では、JDBC data source for AzureDataCatalog を作成し、クエリを実行します。

JDBC Driver for AzureDataCatalog を追加する

以下のステップに従ってドライバーJAR を追加します。

  1. Squirrel SQL で[Windows]->[View Drivers]と進みます。
  2. プラスアイコンをクリックし、[Add Driver]ウィザードを開きます。
  3. [Name]ボックスで、CData JDBC Driver for AzureDataCatalog のようなドライバーのわかりやすい名前を入力します。
  4. [Example URL]ボックスで、jdbc:azuredatacatalog: と入力します。
  5. [Extra Class Path]タブで[Add]をクリックします。
  6. 表示される[file explorer]ダイアログで、インストールディレクトリのlib サブフォルダにあるドライバーのJAR ファイルを選択します。
  7. [List Drivers]をクリックして[Class Name]メニューにドライバーのクラス名(cdata.jdbc.azuredatacatalog.AzureDataCatalogDriver) を入力します。
The definition for the JDBC data source.(Salesforce is shown.)

接続プロパティを定義する

以下のステップに従って、接続プロパティをドライバーエイリアスに保存します。

  1. [Windows]->[View Aliases]と進みます。
  2. エイリアスが一覧表示されているペインで、プラスアイコンをクリックします。
  3. 表示される[Add Alias]ウィザードで、JDBC ドライバーには以下のフィールドが要求されます。

    • Name:CData Azure Data Catalog Source のようなエイリアスの名前を入力します。
    • Driver:CData JDBC Driver for AzureDataCatalog を選択します。
    • URL:jdbc:azuredatacatalog: と入力します。
    The alias definition, containing the connection parameters.(Salesforce is shown.)
  4. 追加のプロパティを定義する場合は、[Properties]をクリックします。
  5. 表示されるダイアログの[Driver properties]タブで、[Use driver properties]のチェックボックスを選択します。
  6. [Specify]カラムで必要な接続プロパティのチェックボックスを選択します。

    You can optionally set the following to read the different catalog data returned from Azure Data Catalog.

      CatalogName: Set this to the CatalogName associated with your Azure Data Catalog. To get your Catalog name, navigate to your Azure Portal home page > Data Catalog > Catalog Name

    Connect Using OAuth Authentication

    You must use OAuth to authenticate with Azure Data Catalog. OAuth requires the authenticating user to interact with Azure Data Catalog using the browser. For more information, refer to the OAuth section in the help documentation.

    以下は一般的な接続文字列です。

    jdbc:azuredatacatalog:InitiateOAuth=GETANDREFRESH Connection properties automatically detected by Squirrel SQL.(Salesforce is shown.)
  7. [OK]をクリックし、表示されるダイアログで[connect]をクリックして接続を確認します。

スキーマを検出しAzure Data Catalog データをクエリする

メタデータが読み込まれると、Azure Data Catalog データソースの新しいタブが表示されます。[Objects]サブタブでは、使用可能なテーブルやビューなどのスキーマ情報を見つけることができます。

Column metadata for a table.(Salesforce is shown.)

テーブルデータを表示するには[Objects]タブでテーブルを選択します。その後、テーブルデータが[Content]タブのグリッドに読み込まれます。

Tables can be edited on the Content tab.(Salesforce is shown.)

SQL クエリを実行するには、[SQL]タブにクエリを入力し、[Run SQL](ランナーアイコン)をクリックします。例:

SELECT DslAddressDatabase, Type FROM Tables WHERE Name = 'FactProductInventory' A query and the results.(Salesforce is shown.)