This section briefly describes the menu and toolbar commands in Query Demo. For more information about the OLE DB interfaces and methods that are executed by many of the menu items, see the OLE DB Programmer’s Reference.
The IDBInitialize menu contains the following data source initialization commands.
Menu item | Description |
Initialize | Executes IDBInitialize::Initialize with the parameters you supply in the Initialize A Data Source dialog box. Choose a provider from the list and enter the data source name, user ID, and password, as required. Click Initialize to initialize the data source. |
Uninitialize | Executes IDBInitialize::Uninitialize on the data source you select from the list. Select the data source you want to uninitialize from the list and click Release. You can also close individual commands by clicking the Close Command button. Click Close when you are done. |
The Command menu contains the following query management commands.
Menu Item | Description |
Execute Command Text | Executes ICommand::Execute with the command text specified in the command window. |
New Command | Executes IDBCreateCommand::CreateCommand and opens a new window for the command. |
The Schema menu retrieves the following schema rowsets. Create a command and choose the schema rowset you want to view from the menu to populate the command window.
Menu Item | Description |
CATALOGS | Executes IDBSchemaRowset::GetRowset for the CATALOGS schema rowset. |
COLUMNS | Executes IDBSchemaRowset::GetRowset for the COLUMNS schema rowset. |
PROCEDURE_ PARAMETERS |
Executes IDBSchemaRowset::GetRowset for the PROCEDURE PARAMETERS schema rowset. |
PROCEDURES | Executes IDBSchemaRowset::GetRowset for the PROCEDURES schema rowset. |
PROVIDER_ TYPES |
Executes IDBSchemaRowset::GetRowset for the PROVIDER TYPES schema rowset. |
SCHEMATA | Executes IDBSchemaRowset::GetRowset for the SCHEMATA schema rowset. |
TABLES | Executes IDBSchemaRowset::GetRowset for the TABLES schema rowset. |
The Window menu contains the following commands.
Menu Item | Description |
Tile | Arranges the windows as nonoverlapping tiles. |
Cascade | Arranges the windows to overlap. |
Arrange Icons | Arranges the icons for minimized child windows. |
Close All | Closes all windows. |
The Help menu contains the following command.
Menu Item | Description |
About Qurydemo | Displays version and copyright information for Query Demo. |
The toolbar and status bar contain the following items.
Menu Item | Description |
Session list | The session list is implemented as a drop-down list on the left side of the toolbar. You can select among multiple active OLE DB sessions from this list. |
Command list | The command list is implemented as a drop-down list to the right of the session list on the toolbar. You can select among commands on an active OLE DB session from this list. |
New Command button | Click New Command to create a new command. This button executes the same action as choosing New Command from the Command menu. |
Execute button | Click Execute to execute the command text on the active command. This button executes the same action as choosing Execute Command Text from the Command menu. |
Status messages | During lengthy operations, a status message may appear in the lower-left corner of the status bar. For example, when you execute a command that returns a large rowset, the status bar may display Executing Command Text. When Query Demo is ready for user input, the status bar displays Ready. |