DBArtisan でJDBC 経由でSage US Data をデータ連携利用

DBArtisan のウィザードを使用して、Sage US のJDBC データソースを作成します。

CData JDBC Driver for Sage US は、データベースとしてSage US data に連携できるようにすることで、Sage US data をDBArtisan などのデータベース管理ツールにシームレスに連携します。ここでは、DBArtisan でSage US のJDBC ソースを作成する方法を説明します。データを直観的に標準SQL で実行できます。

Sage US Data をDBArtisan Projects に連携

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 JDBC.
  3. Click Manage.
  4. In the resulting dialog, click New.Enter a name for the driver and click Add.In the resulting dialog, navigate to the driver JAR.The driver JAR is located in the lib subfolder of the installation directory.
  5. In the Connection URL box, enter credentials and other required connection properties in the JDBC URL.

    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.

    ビルトイン接続文字列デザイナー

    For assistance in constructing the JDBC URL, use the connection string designer built into the Sage US JDBC Driver.Either double-click the JAR file or execute the jar file from the command-line.

    java -jar cdata.jdbc.sage50us.jar

    Fill in the connection properties and copy the connection string to the clipboard.

    Below is a typical connection string:

    jdbc:sage50us:ApplicationId=8dfafu4V4ODmh1fM0xx;CompanyName=Bellwether Garden Supply - Premium;
  6. 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.

 
 
ダウンロード