The ESQL Sample demonstrates a simple application that uses the embedded SQL programming interface. This application allows you to start the sample database running on the network database server, and access data using SQL statements.
The source code for this sample can be found in samples-dir\SQLAnywhere\ce\esql_sample.
You can load this project file in Visual Studio 2005 from: samples-dir\SQLAnywhere\ce\sql_sample\esql_sample.sln.
In the ESQL Sample user interface, SQL statements must be entered on a single line.
To use the ESQL Sample
Start the ESQL Sample by tapping Start » Programs » SQLAny11 » ESQL Sample.
Tap Connect to connect to the sample database using the default connection string.
The sample database starts on a network database server. The database server messages window appears briefly, then closes.
Tap ExecSQL to execute the default SQL statement, SELECT * FROM Employees.
Data from the Employees table appears in the data window.
Use the scroll bars to view Employee table data.
To access data in the Customers table, type SELECT * FROM Customers, and tap ExecSQL.
Customer data replaces the Employee data in the data window.
Tap Disconnect to shut down the network database server.
The ESQL Sample disconnects and the network database server shuts down.
Close the ESQL Sample by tapping x in the top right corner of the window.
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |