0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

JDBCを使ってAzure SQL Data WarehouseにAzure Active Directory認証で接続する

Posted at

PDI(Pentaho Data Integration)からJDBCを使ってAzure SQL Data WarehouseにAzure Active Directory認証で接続できましたのでその方法をまとめておきます。
#必要となるJDBCドライバー、ライブラリ

上記のJDBCドライバー(今回はmssql-jdbc-7.0.0.jre8.jarを使用)と、adal4j(今回はadal4j-1.6.3.jarを使用)と必要な依存関係ファイルをJavaのclasspath上に配置します。

#JDBC設定

  • 接続URL
    jdbc:sqlserver://[SERVERNAME].database.windows.net;databaseName=[DBNAME];authentication=ActiveDirectoryPassword;encrypt=true;trustServerCertificate=false;hostNameInCertificate=*.database.windows.net;loginTimeout=30
  • ドライバークラス
    com.microsoft.sqlserver.jdbc.SQLServerDriver

#Pentahoの接続の作成

  • Connection Type: Generic Database
  • Custom Connection URL: 上記の接続URL
  • Custom Driver Class Name: 上記のドライバークラス
  • User Name: Azure ADのユーザー名
  • Password: Azure ADのパスワード

#参考にした情報

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?