This section briefly describes the menu commands in Cursor Demo. For more information about the ODBC functions that are executed by many of the menu items, see the ODBC Programmer's Reference.
Command | Description |
New | Opens a new statement handle on the current connection. |
Connect | Closes the current data source connection and connects to a new data source. |
Disconnect | Disconnects from the current data source. |
Sql | Opens the Statement dialog box, which enables you to execute an SQL statement. |
Table Information | Opens the Table Information dialog box, which enables you to query various types of information from the database. It contains the following items:
Tables—Calls SQLTables with the specified arguments. Columns—Calls SQLColumns to return column information. Procedures—Calls SQLProcedures for procedure information. Statistics—Calls SQLStatistics to retrieve index information. Privileges—Calls SQLTablePrivileges to retrieve privilege information. Qualifier, Owner, Name, and Type—These edit boxes specify arguments for the ODBC functions. For information about ODBC functions, see the ODBC Programmer's Reference. Type Information—Use this box to specify calls to SQLGetTypeInfo to return information about the data types supported by the data source. Options—Opens the Options dialog box, which enables you to set Cursor Demo statement options. The Options dialog box contains the following:
|
Close | Closes the current statement. |
Close All | Closes all open statements. |
Exit | Exits Cursor Demo. |
All the Fetch menu items use SQLExtendedFetch with different values for the FetchOrientation argument. For information about SQLExtendedFetch, see the ODBC Programmer's Reference.
Command | Description |
First | Uses SQLExtendedFetch with a FetchOrientation value of SQL_FETCH_FIRST. (Fetches the first rowset in the result set.) |
Prev | Uses SQLExtendedFetch with a FetchOrientation value of SQL_FETCH_PRIOR. (Fetches the previous rowset in the result set.) |
Next | Uses SQLExtendedFetch with a FetchOrientation value of SQL_FETCH_NEXT. (Fetches the next rowset in the result set.) |
Last | Uses SQLExtendedFetch using a FetchOrientation value of SQL_FETCH_LAST. (Fetches the last rowset in the result set.) |
Absolute | Uses SQLExtendedFetch with a FetchOrientation value of SQL_FETCH_ABSOLUTE. (Fetches the rowset starting at the given absolute row number.) |
Relative | Uses SQLExtendedFetch with a FetchOrientation value of SQL_FETCH_RELATIVE. (Fetches the rowset starting at the given relative row number.) |
Delete Row | Deletes the selected row. |
Update Row | Opens the Update Row dialog box, which enables you to change data in the selected row. |
Command | Description |
Cascade | Cascades all open windows. |
Tile Horizontal | Tiles all open windows horizontally. |
Tile Vertical | Tiles all open windows vertically. |
Arrange Icons | Lines up all minimized windows along the bottom of the Cursor Demo workspace. |
List Of Open Windows | Lists all open windows along with the name of the cursor they represent. |
Command | Description |
Help | Opens the ODBC Samples help file. |
About | Displays version information for Cursor Demo. |