SharePoint Excel Services からCData ODBC Driver for IBMCloudObjectStorage を使用

この記事では、CData ODBC Driver for IBMCloudObjectStorage を使用して、SharePoint のオンプレミスエディションでExcel からIBM Cloud Object Storage に接続する方法を説明します。SharePoint ユーザーは、このテクニックによってExcel でIBM Cloud Object Storage データを使用したレポートやスコアカード、ダッシュボードを作成できます。

古川えりか
コンテンツスペシャリスト


こんにちは!ドライバー周りのヘルプドキュメントを担当している古川です。

CData ODBC Driver for IBMCloudObjectStorage には、Excel のビルトインデータアクセスツールを使用してアクセスできます。この記事では、CData ODBC Driver for IBMCloudObjectStorage を使用して、SharePoint のオンプレミスエディションでExcel スプレッドシートからIBM Cloud Object Storage に接続する方法を説明します。

CData ODBC Drivers とは?

CData ODBC Drivers は、以下のような特徴を持ったリアルタイムデータ連携ソリューションです。

  1. IBM Cloud Object Storage をはじめとする、CRM、MA、会計ツールなど多様なカテゴリの270種類以上のSaaS / オンプレミスデータソースに対応
  2. 多様なアプリケーション、ツールにIBM Cloud Object Storage データを連携
  3. ノーコードでの手軽な接続設定
  4. 標準 SQL での柔軟なデータ読み込み・書き込み

CData ODBC Driver では、1.データソースとしてIBM Cloud Object Storage の接続を設定、2.SharePoint Excel Services 側でODBC Driver との接続を設定、という2つのステップだけでデータソースに接続できます。以下に具体的な設定手順を説明します。

CData ODBC Drivers のインストールとIBM Cloud Object Storage への接続設定

まずは、本記事右側のサイドバーからIBMCloudObjectStorage ODBC Driver の無償トライアルをダウンロード・インストールしてください。30日間無償で、製品版の全機能が使用できます。

未指定の場合は、初めにODBC DSN で接続プロパティを指定します。ドライバーのインストールの最後にアドミニストレーターが開きます。Microsoft ODBC Data Source Administrator を使用して、ODBC DSN を作成および構成できます。

Register a New Instance of Cloud Object Storage

If you do not already have Cloud Object Storage in your IBM Cloud account, follow the procedure below to install an instance of SQL Query in your account:

  1. Log in to your IBM Cloud account.
  2. Navigate to the page, choose a name for your instance and click Create. You will be redirected to the instance of Cloud Object Storage you just created.

Connecting using OAuth Authentication

There are certain connection properties you need to set before you can connect. You can obtain these as follows:

API Key

To connect with IBM Cloud Object Storage, you need an API Key. You can obtain this as follows:

  1. Log in to your IBM Cloud account.
  2. Navigate to the Platform API Keys page.
  3. On the middle-right corner click "Create an IBM Cloud API Key" to create a new API Key.
  4. In the pop-up window, specify the API Key name and click "Create". Note the API Key as you can never access it again from the dashboard.

Cloud Object Storage CRN

If you have multiple accounts, you will need to specify the CloudObjectStorageCRN explicitly. To find the appropriate value, you can:

  • Query the Services view. This will list your IBM Cloud Object Storage instances along with the CRN for each.
  • Locate the CRN directly in IBM Cloud. To do so, navigate to your IBM Cloud Dashboard. In the Resource List, Under Storage, select your Cloud Object Storage resource to get its CRN.

Connecting to Data

You can now set the following to connect to data:

  • InitiateOAuth: Set this to GETANDREFRESH. You can use InitiateOAuth to avoid repeating the OAuth exchange and manually setting the OAuthAccessToken.
  • ApiKey: Set this to your API key which was noted during setup.
  • CloudObjectStorageCRN (Optional): Set this to the cloud object storage CRN you want to work with. While the connector attempts to retrieve this automatically, specifying this explicitly is recommended if you have more than Cloud Object Storage account.

When you connect, the connector completes the OAuth process.

  1. Extracts the access token and authenticates requests.
  2. Saves OAuth values in OAuthSettingsLocation to be persisted across connections.

Excel サービスを構成

ODBC DSN の構成後、DSN を使用して接続するようにExcel Services を設定できます。このためには、OLE DB プロバイダを信頼できるデータソースとして設定する必要があります。また、ODBC ドライバーでシングルサインオン機能を有効にするためにSecure Store Service を使用するかどうかを決定する必要があります。必要に応じてExcel Services Unattended アカウントを使用することで、以下のステップ3までスキップできます。

  1. はじめに、シングルサインオンを使用するようにセキュアストアアプリケーションを設定します。[SharePoint Central Administration]で、[Application Management]->[Manage Service Applications]と移動します。セキュアストアサービスアプリケーションを選択するか、新しく作成します。[Edit]メニューの[Manage]をクリックしてアプリケーションの編集を始めます。
  2. 新しいターゲットアプリケーションを作成します。
  3. このアプリケーションにアクセスできるユーザーのリストを設定できます。アプリが作成できたら、あとからシングルサインオンで使用できるように、アプリケーションに資格情報を設定する必要があります。
  4. [SharePoint Central Administration]で[Application Management]->[Manage Service Applications]と移動します。組織で使用されているExcel Services アプリケーションを選択します。まだ存在しない場合には作成します。[Manage]をクリックします。新しいアプリを作成する場合は、サービスアプリケーションのプロキシをファームのデフォルトのプロキシリストに追加するオプションをオンにします。
  5. [Trusted Data Providers]をクリックして新しい信頼されたプロバイダを追加します。Provider ID を[MSDASQL.1]に設定し、タイプは[OLE DB]のままにします。[OK]をクリックして信頼されたプロバイダのリストに新しいプロバイダを追加します。 The OLE DB provider configured as a trusted provider.

Excel でのIBM Cloud Object Storage データへの接続とインポート

DSN へのアクセスを有効にして保護した後、Excel のリボンからデータソースにアクセスできます。

  1. Excel スプレッドシートで、[Data]タブを開き、[From Other Sources]->[From Data Connection Wizard]をクリックします。
  2. タイプとして[Other/Advanced]を選択し、次の画面で[Microsoft OLE DB Provider for ODBC Drivers]を選択します。[Connection]タブで、システムDSN であるCData IBMCloudObjectStorage Sysを選択します。ドライバーをインストールすると、一致するユーザーとシステムのDSN が自動的に作成されます。SharePoint から接続するには、システムDSN が必要です。The DSN to connect to.(Salesforce is shown.)
  3. 接続するテーブルを選択します。
  4. ウィザードでの最後のステップで、[Authentication Settings]ボタンをクリックします。[Use a stored account]を選択し、以前作成したセキュアストアターゲットアプリケーションの名前を入力します。または、[Unattended Service Account]を使用する場合は、[None]を選択します。 The name of the secure store target application.
  5. ウィザードを終了すると、データがスプレッドシートにインポートされます。IBM Cloud Object Storage データをSharePoint から直接更新したり、保存できるようになりました。 Data imported into the spreadsheet from the ODBC data source.

IBM Cloud Object Storage からSharePoint Excel Services へのデータ連携には、ぜひCData ODBC Driver をご利用ください

このようにCData ODBC Drivers と併用することで、270を超えるSaaS、NoSQL データをコーディングなしで扱うことができます。30日の無償評価版が利用できますので、ぜひ自社で使っているクラウドサービスやNoSQL と合わせて活用してみてください。

CData ODBC Driver は日本のユーザー向けに、UI の日本語化、ドキュメントの日本語化、日本語でのテクニカルサポートを提供しています。

関連コンテンツ

トライアル・お問い合わせ

30日間無償トライアルで、CData のリアルタイムデータ連携をフルにお試しいただけます。記事や製品についてのご質問があればお気軽にお問い合わせください。