Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
To connect to a database using an ODBC data source, use the Connect window with the ODBC Data Source Name option.
An ODBC data source for the database that you want to connect to.
Context and remarks
The SQL Anywhere 12 Demo data source is configured to start the database server and database if they are not already running. If your ODBC data source is not configured to start the database and database server, then you must start them. For example, run the following command to start the SQL Anywhere 12 sample database:
dbeng12 -n demo12 "%SQLANYSAMP12%\demo.db"
Open the Connect window from Sybase Central or Interactive SQL. See Opening the Connect window (Sybase Central).
Complete the following fields to connect to the database:
In the Authentication dropdown list, click Database.
In the User ID field, type a user name. For example, type DBA.
In the Password field, type a password for the user. For example, type sql.
In the Action dropdown list, click Connect Using An ODBC Data Source.
Do one of the following:
Click ODBC Data Source Name and type the name of the data source. For example, type SQL Anywhere 12 Demo.
Click ODBC Data Source File and type the FileDataSourceName (FILEDSN) connection parameter that references a data source held in a file.
Optional: To get a copy of the connection string that is created with this window, click Tools » Copy Connection String to Clipboard.
Discuss this page in DocCommentXchange.
|Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1|