1. Installation
Please run the downloaded file dbexpsyb.exe and follow the installation application instructions. After the process is complete the driver will be installed, configured and ready to work, i.e:
- All driver files, samples and documentation will be copied to the installation directory.
- A copy of
dbexpsyb.dll from <InstallDir>\Bin will be placed in your System folder.
- Configuration files
dbxdrivers.ini and dbxconnections.ini will be automatically changed by the installation process. You will need these files for Delphi IDE.
2. Usage
To create a simple application like the one from the driver distributive, follow the instructions:
- Create a new application
(File => New => Application)
- Place on the form the following components:
SQLConnection, SQLClientDataSet, DataSource, DBGrid:
- Set
DriverName of SQLConnection to Sybase: 
- Adjust
SQLConnection Params property: 
Set the necessary UserName and Password. If you don't want to provide login support when establishing connection, set
LoginPrompt of SQLConnection to False. Set the necessary
ServerName and DatabaseName as shown in the picture.
- Link
SQLClientDataSet to SQLConnection. Set the
CommandText property:

The following SQL query is used in our sample: "select id, name from sysobjects".
This query retrieves object list from our database.
- Link
DataSource to SQLClientDataSet. Link DBGrid to
DataSource:
 
- Add the following code to the
OnCreate event handler:
SQLConnection1.Open; SQLClientDataSet1.Open;
- The application is ready to work.
|