ASA Database Administration Guide
Connecting to a Database
Simple connection examples
You can save sets of connection parameters in a data source. ODBC and Embedded SQL applications use data sources. You can create data sources from the ODBC Administrator.
If you are constructing an application, you should only use data sources for ODBC applications. It is possible to specify data sources when you are using the JDBC driver (jConnect), but only within Sybase Central or Interactive SQL.
For more information, see Specifying a driver for your connection.
To connect from using a data source (Sybase Central or Interactive SQL )
Start Sybase Central or Interactive SQL and open the Connect dialog (if it doesn't appear automatically).
On the Identification tab, type a user ID and password.
On the lower half of the Identification tab, do one of the following:
Select the ODBC Data Source Name option and specify a data source name (equivalent to the DataSourceName (DSN) connection parameter, which references a data source in the registry). You can view a list of data sources by clicking Browse.
Select the ODBC Data Source File option and specify a data source file (equivalent to the FileDataSourceName (FILEDSN) connection parameter, which references a data source held in a file). You can search for a file by clicking Browse.
The ASA 9.0 Sample data source holds a set of connection parameters, including the database file and a StartLine (START) parameter to start the database.
See also