SK SKYVVA Documentation

Enable ODBC on the new Agent

Introduction

The JDBC-ODBC Bridge allows applications written in the Java programming language to use the JDBC API with many existing ODBC drivers. The Bridge is itself a driver based on JDBC technology ("JDBC driver") that is defined in the class sun.jdbc.odbc.JdbcOdbcDriver. The Bridge defines the JDBC sub-protocol odbc. Oracle does not support the JDBC-ODBC Bridge from Java 8. Oracle recommends that you use JDBC drivers provided by your database vendor instead of the JDBC-ODBC Bridge. Oracle was removed JDBC-ODBC Bridge since Java 8, but we have enhanced on our new Agent to support ODBC connection although the Agent was used Java 15. This function available from Agent 3.05 and later. We are showing the direction from Salesforce to the Agent for pushing data to insert records to the database, SQL Server is used for example. Currently, we support only this Database. In this tutorial, we showed the INSERT operation only, due to everything is the same as JDBC. So we can check the JDBC tutorial follow to this link How to push data to the Database using the new Agent

Pre-required

Step-1: Create a Data source [su_box title="Note" box_color="#2a8af0" title_color="#000000"]We need to create a data source on the machine which is running the Agent. We need to download the OBDC driver if it not available on your machine[/su_box]

Step-2: Create an Adapter

Fill all required field

[su_box title="Note" box_color="#2a8af0" title_color="#000000"]For Agent version 3.05 , on the Connection URI we need to include the username and password.For example: jdbc:odbc:testSQL-ODBC-Native;user=yourUsername;password=yourPassword. It is used for generate MessageType. But if we use patch 1 of Agent 3.05, and then we no need to include the user name and password on Connection URI, we need only Datasource name[/su_box] We can test the connectivity to the Database by pressing Ping Connection

Step-3: Generate Message Type

Here is the Message Type generating from the Table “tbl_account_db_ATN In this example, we show about INSERT operation to send data from Salesforce to the SQL Server Database. We have defined the key auto increment on the table, the key is generated automatically by the database. So we need to define the Response interface for updating the key sent from the Database. For making the data on from Salesforce and the Database the same. The Message Type generating explanation is the same as the JDBC example, we can find out on this link How to do insert operation using Synchronous and Asynchronous outbound interface Step-4 Create Interface Before pushing data to the Agent, we need to check the Cache status first, and make sure it displays completely. Step-5 Push data to the Database

The record insert correctly into the Database and update the database key to the Salesforce

Summary

Finally, we have understood the scope of the new Agent that we can push data to the Database by using the ODBC driver. We also know about how to create Data Sources, generate Message Type and push data on the Agent Control Board.

Open this article in the interactive viewer →