Rowset Viewer Example
This example describes how to connect to a provider, execute a command, and use IOpenRowset.
To connect to a provider
-
Start ROWSETVIEWER.EXE.
-
From the DataSource menu, choose Full Connect.
-
Select MSDASQL as the provider and type OLE_DB_NWind_Jet for the DataSource parameter.
-
Click Connect.
To execute a command
-
In the top pane of the MDI child window, type the following query:
SELECT * FROM CUSTOMERS
-
Click the ! button on the toolbar or choose ICommand::Execute from the Command menu.
To use IOpenRowset
-
In the top pane of the MDI child window, type CUSTOMERS.
-
Make sure that the SQL button is up and click the ! button, or choose IOpenRowset from the Session menu.