Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
In this lesson, you connect to a sample database. You can choose to use Sybase Central or Interactive SQL to connect.
Start Sybase Central or Interactive SQL.
To start Sybase Central, click Start » Programs » SQL Anywhere 12 » Administration Tools » Sybase Central.
To start Interactive SQL, Start » Programs » SQL Anywhere 12 » Administration Tools » Interactive SQL.
Click Connections » Connect With SQL Anywhere 12.
Complete the following fields to connect to the database:
In the User ID field, type DBA.
In the Password field, type sql.
In the Action dropdown list click Connect To A Running Database On This Computer.
In the Server Name field, type demo12.
Your computer may be running software that has an embedded SQL Anywhere server, in which case there could be multiple servers running without you realizing it. You should always specify the server name (ServerName=server-name).
The administrative tool connects to the database.
Optional. Query the Customers table in Interactive SQL.
In the SQL Statements pane, type the following:
SELECT * FROM Customers;
Run the statement. Press F5 or click SQL » Execute to execute the statement.
The result set appears in the Results pane.
Proceed to Lesson 3: Stopping the database server.
Discuss this page in DocCommentXchange.
|Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1|