ノーコードでクラウド上のデータとの連携を実現。
詳細はこちら →無償トライアル:
無償トライアルへ製品の情報と無償トライアルへ:
Azure Data Catalog データに連携する.NET アプリケーションを素早く、簡単に開発できる便利なドライバー。
加藤龍彦
ウェブデベロッパー
CData ADO.NET Provider for AzureDataCatalog は、ADO.NET 標準インターフェースへ統合し、PowerShell のような. NET アプリケーションからAzure Data Catalog API へのデータ連携を可能にします。このプロバイダーは、Azure Data Catalog の認証および相互作用を簡単にします。このチュートリアルでは、PowerShell から直接SQL クエリを実行するための、いくつかの一般的なADO.NET オブジェクトの使い方を説明します。
次の3つのステップに従って SELECT クエリ PowerShell からリアルタイムAzure Data Catalog に実行:
プロバイダーのアセンブリをロード:
[Reflection.Assembly]::LoadFile("C:\Program Files\CData\CData ADO.NET Provider for AzureDataCatalog\lib\System.Data.CData.AzureDataCatalog.dll")
Azure Data Catalog に接続:
You can optionally set the following to read the different catalog data returned from Azure Data Catalog.
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.
$constr = ""
$conn= New-Object System.Data.CData.AzureDataCatalog.AzureDataCatalogConnection($constr)
$conn.Open()
AzureDataCatalogDataAdapter のインスタンスを生成してSQL クエリを実行し、結果を出力:
$sql="SELECT DslAddressDatabase, Type from Tables"
$da= New-Object System.Data.CData.AzureDataCatalog.AzureDataCatalogDataAdapter($sql, $conn)
$dt= New-Object System.Data.DataTable
$da.Fill($dt)
$dt.Rows | foreach { Write-Host $_.dsladdressdatabase $_.type }