DBArtisan でSage US Data に連携

DBArtisan のウィザードを使って、Sage US data をデータソースとして連携利用。

CData ODBC Driver for Sage US は、DBArtisan などのデータベースツールとSage US data を連携し、RDB のような感覚でSage US データを扱えます。 本記事では、DBArtisan 上でSage US データソースを作成する方法とクエリの実行方法を説明します。

DBArtisan Project にSage US Data を連携する

If you have not already, first specify connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs.

The Application Id and Company Name connection string options are required to connect to Sage as a data source. You can obtain an Application Id by contacting Sage directly to request access to the Sage 50 SDK.

Sage must be installed on the machine. The Sage.Peachtree.API.dll and Sage.Peachtree.API.Resolver.dll assemblies are required. These assemblies are installed with Sage in C:\Program Files\Sage\Peachtree\API\. Additionally, the Sage SDK requires .NET Framework 4.0 and is only compatible with 32-bit applications. To use the Sage SDK in Visual Studio, set the Platform Target property to "x86" in Project -> Properties -> Build.

You must authorize the application to access company data: To authorize your application to access Sage, restart the Sage application, open the company you want to access, and connect with your application. You will then be prompted to set access permissions for the application in the resulting dialog.

While the compiled executable will require authorization only once, during development you may need to follow this process to reauthorize a new build. To avoid restarting the Sage application when developing with Visual Studio, click Build -> Configuration Manager and uncheck "Build" for your project.

You can then follow the steps below to register Sage US data as a database instance in your project:

  1. In DBArtisan, click Data Source -> Register Datasource.
  2. Select Generic ODBC.
  3. Enter a name for the data source and select the DSN.
  4. Finish the wizard to connect to Sage US data. Sage US entities are displayed in the Datasource Explorer.

You can now work with Sage US data as you work with any other database. See the driver help documentation for more information on the queries supported by the Sage US API.

 
 
ダウンロード