Creating a Rowset with IOpenRowset
SQLOLEDB supports IOpenRowset::OpenRowset with the following restrictions:
-
A base table or view must be specified in a DBID structure that the pTableID parameter points to.
-
The DBID eKind member must indicate DBKIND_NAME.
-
The DBID uName member must specify the base table or view name as a Unicode character string.
-
The pIndexID parameter of OpenRowset must be NULL.
The result set of IOpenRowset::OpenRowset contains a single rowset. Result sets containing a single rowset can be supported by SQL Server cursors. Cursor support allows the developer to use SQL Server concurrency mechanisms.