You can connect to a local database using the Interactive SQL utility at a command prompt. You can start and connect to the database and database server, or you can connect to a running database.
Prerequisites
Connecting to a database server assumes that a database is running on a database server on your computer. If it isn't already running, start a database server and database. For example, run the following command to start the SQL Anywhere 16 sample database on a database server:
dbsrv16 -n database-name "file path" |
There are no prerequisites for this task.
Run the following command to start Interactive SQL and connect to a database:
Option | Action | ||
---|---|---|---|
Start and connect to a database |
|
||
Connect to a running database |
|
Example
Run the following command to start a database server and database and connect to the database from Interactive SQL:
dbisql -c "UID=DBA;PWD=sql;ServerName=mydemo;DBF=%SQLANYSAMP16%demo.db;" |
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |