The information in this article applies to:
SUMMARYThe DB-Library (and VBSQL) cursor functions use the catalog stored procedures to retrieve system table information from the database. The current SQL Server version 4.2 catalog stored procedures do not work against temporary tables. Thus, you cannot open a cursor using a SELECT that references a temporary table at this time. MORE INFORMATION
Cursors can be opened against sets of temporary information by using a
permanent table that contains an additional column containing the users
server process ID (SPID). The SPID is a value that is guaranteed to be
unique to each connection to SQL Server.
When you want to start using this table, you should first make sure there are no left-over values from previous users by using the following query:
Then you can insert a value, 25 for example, into the table:
You can then retrieve rows from this table:
Provided that a unique index can be created on the table, the above query can also be used to open a cursor onto all rows inserted into the table by the current connection. Additional query words: dbcursoropen temp temporary dblib
Keywords : kbprg SSrvDB_Lib |
Last Reviewed: March 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |