B
Bob The Builder
I am emulating the old connected recordset of the ado days using a
static connection to the db and a cursor in my vb.net application. The
cursor is opened as a "scroll keyset" because I need to be able to jump
around to any record at any time and the "cursor threshold" is set to
5000. Unfortunately, I only get back one record. If I set "cursor
threshold" to -1, I get back all 171,000. Basically, I want to get the
first 5000 records and return control to the application. I can't do a
"SELECT TOP 5000" either because then the cursor will be limited to
5000 records and other aspects of the application will fail. MS has
provided us a wonderful capability with asynchronous cursor population,
but no decent way to use it. Thanks for your help
static connection to the db and a cursor in my vb.net application. The
cursor is opened as a "scroll keyset" because I need to be able to jump
around to any record at any time and the "cursor threshold" is set to
5000. Unfortunately, I only get back one record. If I set "cursor
threshold" to -1, I get back all 171,000. Basically, I want to get the
first 5000 records and return control to the application. I can't do a
"SELECT TOP 5000" either because then the cursor will be limited to
5000 records and other aspects of the application will fail. MS has
provided us a wonderful capability with asynchronous cursor population,
but no decent way to use it. Thanks for your help