Ready to get started?

Learn more about Sage US Connectivity Solutions

Learn More

Connect to Sage US Data in DBArtisan

Use wizards in DBArtisan to configure Sage US data as a data source.

The CData ODBC Driver for Sage US seamlessly integrates Sage US data into database management tools like DBArtisan by enabling you to access Sage US data as a database. This article shows how to create an data source for Sage US in DBArtisan and execute queries. You can then edit data visually and execute standard SQL.

Integrate Sage US Data into DBArtisan Projects

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.