CData ODBC Drivers は、Open Database Connectivity (ODBC) をサポートするあらゆるデータベース管理ツールにデータを連携します。多くの一般的なプロダクティビティツールにおいて、ドキュメントの共有やコラボレーション機能を新たに追加します。CData ODBC Driver for ADLS を使って、Microsoft Access でAzure Data Lake Storageを取得および更新ができます; 例えば内容を更新するとすぐに、アップデートされた内容を他のユーザーが見ることができます。
Azure Data Lake Storage DSN を作成
接続プロパティが未設定の場合には、ODBC データソース名の設定を行います。Microsoft ODBC データソースアドミニストレーターを使ってDSN を作成および設定できます。
Authenticating to a Gen 1 DataLakeStore Account
Gen 1 uses OAuth 2.0 in Azure AD for authentication.
For this, an Active Directory web application is required. You can create one as follows:
- Sign in to your Azure Account through the
[.
]- Select "Azure Active Directory".
- Select "App registrations".
- Select "New application registration".
- Provide a name and URL for the application. Select Web app for the type of application you want to create.
- Select "Required permissions" and change the required permissions for this app. At a minimum, "Azure Data Lake" and "Windows Azure Service Management API" are required.
- Select "Key" and generate a new key. Add a description, a duration, and take note of the generated key. You won't be able to see it again.
To authenticate against a Gen 1 DataLakeStore account, the following properties are required:
- Schema: Set this to ADLSGen1.
- Account: Set this to the name of the account.
- OAuthClientId: Set this to the application Id of the app you created.
- OAuthClientSecret: Set this to the key generated for the app you created.
- TenantId: Set this to the tenant Id. See the property for more information on how to acquire this.
- Directory: Set this to the path which will be used to store the replicated file. If not specified, the root directory will be used.
Authenticating to a Gen 2 DataLakeStore Account
To authenticate against a Gen 2 DataLakeStore account, the following properties are required:
- Schema: Set this to ADLSGen2.
- Account: Set this to the name of the account.
- FileSystem: Set this to the file system which will be used for this account.
- AccessKey: Set this to the access key which will be used to authenticate the calls to the API. See the property for more information on how to acquire this.
- Directory: Set this to the path which will be used to store the replicated file. If not specified, the root directory will be used.
一般的な接続文字列は次のとおりです:
Schema=ADLSGen2;Account=myAccount;FileSystem=myFileSystem;AccessKey=myAccessKey;
ODBC データソースアドミニストレーターで必要なプロパティを設定する方法は、ヘルプドキュメントの「はじめに」を参照してください。
Resources データにリンクテーブルを作成
Access からリンクテーブル作成してライブResources データにアクセスする方法は、次のとおりです。
- Access の[外部データ]タブで[新しいデータソース]->[他のソースから]->[ODBC データベース]をクリックします。
- データの保存方法オプションで、インポートかリンクテーブルかを選択します。リンクテーブルでは、Resources テーブルへのデータの読み出しおよび書き込みを可能にします。
[コンピュータデータソース]タブからCData Azure Data Lake Storage データソースを選択します。
-
Resources テーブルを選択します。このテーブルについての詳細は、ヘルプドキュメントの「データモデル」を参照してください。
-
リンクテーブルをダブルクリックで編集
リンクテーブルは常に最新のデータを持ち、すべての変更は元となるテーブルに反映されます。
![A linked table to the live data. (Google is shown.)]()