The following
table includes sample code that is used identify data sets and return
results. Assume that a Connection object named obConnection is already
open.
Sample Code for Identifying Data Sets
|
|
|
Specify the data
set name. In the sample code, the data set name is family . obRecordset.Open "family", obConnection, adOpenStatic, adLockReadOnly, _
adCmdTableDirect
|
IOM, SAS/SHARE,
and Base SAS
|
Use SAS libname.memname notation. In the sample code,
the data set name is mylib.cities . obRecordset.Open "mylib.cities", obConnection, adOpenStatic, _
adLockReadOnly, adCmdTableDirect
|
The value
of the CommandType property determines whether the recordset can be
modified.
How the CommandType Value Affects Results
Value of the CommandType Property
|
|
|
A dynamic open
of a data set that can be modified. Command type adCmdTableDirect
is used in the sample code and can be used with all of the providers.
|
|
A static result
set from a query that cannot be modified. Command type adCmdTable
can be used only with the IOM, SAS/SHARE, and Base SAS providers because
adCmdTable executes an SQL query in the form SELECT *
FROM libname.memname . The local provider does not support
SQL processing.
|