Ready to get started?

Learn more about or download the TIBCO DV Adapters

Learn More

Access Live Sage US Data in TIBCO Data Virtualization

Use the CData TIBCO DV Adapter for Sage US to create a Sage US data source in TIBCO Data Virtualization Studio and gain access to live Sage US data from your TDV Server.

TIBCO Data Virtualization (TDV) is an enterprise data virtualization solution that orchestrates access to multiple and varied data sources. When paired with the CData TIBCO DV Adapter for Sage US, you get federated access to live Sage US data directly within TIBCO Data Virtualization. This article walks through deploying an adapter and creating a new data source based on Sage US.

With built-in optimized data processing, the CData TIBCO DV Adapter offers unmatched performance for interacting with live Sage US data. When you issue complex SQL queries to Sage US, the adapter pushes supported SQL operations, like filters and aggregations, directly to Sage US. Its built-in dynamic metadata querying allows you to work with and analyze Sage US data using native data types.

Deploy the Sage US TIBCO DV Adapter

  1. In a console, navigate to the bin folder in the TDV Server installation directory. If there is a current version of the adapter installed, you will need to undeploy it.

    .\server_util.bat -server localhost -user admin -password ******** -undeploy -version 1 -name Sage50US
    
  2. Extract the CData TIBCO DV Adapter to a local folder and deploy the JAR file (tdv.sage50us.jar) to the server from the extract location.

    .\server_util.bat -server localhost -user admin -password ******** -deploy -package /PATH/TO/tdv.sage50us.jar
    

You may need to restart the server to ensure the new JAR file is loaded properly, which can be accomplished by running the composite.bat script located at: C:\Program Files\TIBCO\TDV Server <version>\bin. Note that reauthenticating to the TDV Studio is required after restarting the server.

Sample Restart Call

.\composite.bat monitor restart
Once you deploy the adapter, you can create a new data source in TDV Studio for Sage US.

Create a Sage US Data Source in TDV Studio

With the CData TIBCO DV Adapter for Sage US, you can easily create a data source for Sage US and introspect the data source to add resources to TDV.

Create the Data Source

  1. Right-click on the folder you wish to add the data source to and select New -> New Data Source.
  2. Scroll until you find the adapter (e.g. Sage US) and click Next.
  3. Name the data source (e.g. CData Sage US Source).
  4. Fill in the required connection properties.

    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.

  5. Click Create & Close.

Introspect the Data Source

Once the data source is created, you can introspect the data source by right-clicking and selecting Open. In the dashboard, click Add/Remove Resources and select the Tables, Views, and Stored Procedures to include as part of the data source. Click Next and Finish to add the selected Sage US tables, views, and stored procedures as resources.

After creating and introspecting the data source, you are ready to work with Sage US data in TIBCO Data Virtualization just like you would any other relational data source. You can create views, query using SQL, publish the data source, and more.