The executable files and corresponding source code are located in the %SQLANYSAMP12%\SQLAnywhere\C directory. For Windows Mobile, an additional example is located in the \SQLAnywhere\CE\esql_sample directory.
The Windows versions of the example programs use the Windows graphical user interface. However, to keep the user interface code relatively simple, some simplifications have been made. In particular, these applications do not repaint their Windows on WM_PAINT messages except to reprint the prompt.
Start the SQL Anywhere sample database, demo.db.
For 32-bit Windows, run the file curwin.exe.
For 64-bit Windows, run the file curx64.exe.
For Unix, run the file cur.
Follow the on-screen instructions.
The various commands manipulate a database cursor and print the query results on the screen. Enter the letter of the command that you want to perform. Some systems may require you to press Enter after the letter.
For 32-bit Windows, run the file dcurwin.exe.
For 64-bit Windows, run the file dcurx64.exe.
For Unix, run the file dcur.
Each sample program presents a console-type user interface and prompts you for a command. Enter the following connection string to connect to the sample database:
DSN=SQL Anywhere 12 Demo |
Each sample program prompts you for a table. Choose one of the tables in the sample database. For example, you can enter Customers or Employees.
Follow the on-screen instructions.
The various commands manipulate a database cursor and print the query results on the screen. Enter the letter of the command you want to perform. Some systems may require you to press Enter after the letter.
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |