![]() |
VOOZH | about |
Embarcadero RAD Studio provides a development environment for Delphi and C++Builder applications. With the CData ODBC Driver for Sybase, you gain access to live Sybase data within RAD Studio, abstracting the data into tables, views, and stored procedures that can be used to both retrieve and update Sybase data. This article will walk through connecting to Sybase using the Data Explorer.
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.
To connect to Sybase, specify the following connection properties:
Optionally, you can also secure your connections with TLS/SSL by setting UseSSL to true.
Sybase supports several methods for authentication including Password and Kerberos.
Set the AuthScheme to Password and set the following connection properties to use Sybase authentication.
To connect with LDAP authentication, configure Sybase server-side to use the LDAP authentication mechanism.
After configuring Sybase for LDAP, you can connect using the same credentials as Password authentication.
To leverage Kerberos authentication, begin by enabling it setting AuthScheme to Kerberos. See the Using Kerberos section in the Help documentation for more information on using Kerberos authentication.
You can find an example connection string below:
Server=MyServer;Port=MyPort;User=SampleUser;Password=SamplePassword;Database=MyDB;Kerberos=true;KerberosKDC=MyKDC;KerberosRealm=MYREALM.COM;KerberosSPN=server-name
You can create a simple application for displaying Sybase data by utilizing the CData FireDAC Components for Sybase and a new VCL Forms Application:
Create a new VCL Forms application and drag a table (for example: Products) onto the form.
๐ Placing the Table on the Form. (Salesforce is shown.)Right-click on the object, bind visually, and link everything (*) to a new control (TStringGrid).
๐ Visually Binding the Table. (Salesforce is shown.)Arrange the TStringGrid on the form and run the application to see the Products data.
๐ The Table data on a Form. (Salesforce is shown.)Below you can find other articles for using the CData ODBC Driver with RAD Studio, Delphi, and C++ Builder.
Download a free trial of the Sybase ODBC Driver to get started:
Download NowLearn more:
๐ SAP Sybase IconThe Sybase ODBC Driver is a powerful tool that allows you to connect with Sybase, directly from any applications that support ODBC connectivity.
Access Sybase databases from virtually anywhere through a standard ODBC Driver interface.