Excel Desktop


Excel Desktop


このページでは、Microsoft Excel Desktop をCData Connect に接続する手順の概要を説明します。

アドインのインストール

Excel Desktop のアドインはCData Connect のダッシュボートもしくはExcel Desktop からインストールできます。

CData Connect ダッシュボードから

  1. CData Connect ダッシュボードのClient Tools ページを開きます。

  2. 検索フィールドにExcel Desktop と入力し、データソース名をクリックします。Microsoft のCData Connect Excel アドインをダウンロードするタブが開きます。

  3. 今すぐ入手するをクリックします。プロンプト画面が表示された場合はMicrosoft アカウントでサインインします。

  4. 開始ページでExcel で開くをクリックします。

    Excel Desktop 内で、新しいOffice アドインペインが開きます。

  5. このアドインを信頼をクリックします。

  6. CData Connect への接続の手順へ続きます。

Excel Desktop から

  1. Excel Desktop で新規もしくは既存のワークブックを開きます。

  2. Excel Desktop のナビゲーションリボンのホームタブを開きます。

  3. アドインをクリックして、ポップアップウィンドウのその他のアドインをクリックします。

  4. Office アドインウィンドウでCData を検索します。検索結果でCData Connect の隣の追加をクリックします。

    認証ダイアログが開きます。

  5. ダイアログの続行をクリックします。

  6. CData Connect への接続の手順へ続きます。

CData Connect への接続

Excel Desktop のアドインをインストールしたら、以下の手順に従ってCData Connect アカウントに接続します。

  1. Excel Desktop のナビゲーションリボンのデータタブを開きCData Connect をクリックします。

    CData Connect アドインペインが開きます。

  2. Authorize をクリックします。

  3. CData Connect ユーザーおよびパスワードを入力してContinue をクリックします。

  4. 許可を求めるプロンプトが表示されたらAccept をクリックします。

    Excel ワークブックの右側にCData アドインペインが表示されます。

接続の設定

まだCData Connect にデータを接続していない場合は、設定する必要があります。

  1. アドインペインでSetup Connection をクリックします。

    新しいウィンドウには、CData Connect のAdd Connection 画面が表示されます。

  2. Excel Desktop に接続するデータ用のコネクタを選択します。

  3. データ接続文字列を入力します。保存して接続をテストします。

    接続に成功したら、データのインポートができます。

データのインポート

CData Connect からExcel Desktop へデータをインポートするには以下の手順に従います。

  1. Excel Desktop のナビゲーションリボンのデータタブを開きCData Connect をクリックします。

    CData Connect アドインペインが開きます。

  2. Import をクリックします。

  3. ドロップダウンメニューから接続を選択します。

    You can now query the data you want to import.

  4. Select Query Builder to build the query in steps or select Custom SQL to enter a query manually. Follow the relevant instructions below.

Query Builder

  1. If using the Query Builder, choose a table from the drop-down list.

    A list of columns and column metadata for the table appears. By default, all columns are selected for inclusion in the query.

  2. (Optional) Deselect the unnecessary columns from your query.

  3. (Optional) Select one or more filters for your query.

  4. (Optional) Select one or more columns to sort by.

  5. Select Set Limit to set a limit of the number of results returned.

  6. Review the Generated query for accuracy.

  7. Click Execute to run your query. Excel imports the data that matches your query into the current sheet.

Custom SQL

  1. If using custom SQL, enter your SQL statement in the text box.

  2. Click Execute to run your query. Excel imports the data that matches your query into the current sheet.

Write Parameterized Queries

You can create dynamic spreadsheets by referencing cells in your custom SQL statement. The Excel Desktop add-in executes the statement as a parameterized query. As you change the values in the sheet, the Excel Desktop add-in executes a new query.

Create Searchable Spreadsheets

Use a parameterized SELECT WHERE query to create a spreadsheet that dynamically filters the data as you edit cells. The following filter criteria references the @InputSheet!A2 parameter, which is cell A2 of the sheet InputSheet. The @ prefix indicates that Industry is a required parameter.

SELECT BillingState, Name FROM Account WHERE Industry = @InputSheet!A2

データのリフレッシュ

データがインポートされたら、自動で定期的にリフレッシュされるように設定できます。手動アップデートを実行することも可能です。自動リフレッシュは、コミットされていないデータを上書きします。データの読み込みだけであれば問題ありません。データを書き込む場合は、変更を頻繁にコミットしてください。

自動リフレッシュが正しく機能するには、Excel ブックを開いておく必要があります。

  1. CData Connect アドインペインでRefresh を選択します。

  2. リフレッシュするデータシートのボックスにチェックを入れます。

  3. 手動でリフレッシュするには、Refresh Now をクリックします。自動リフレッシュを設定するには、代わりにAuto Refresh をクリックします。

  4. Auto Refresh Interval で、リフレッシュ間隔を選択し、Set をクリックします。

リフレッシュ間隔は時間単位で設定でき、最小間隔は1時間であることに注意してください。