Apel is incorrect in his statement.
You can do what you want by creating a disconnected recordset.
To make a disconnected recordset all you need is 2 conditions
1) You must choose a CursorLocation of adUseClient
2) After the query has been run you must set the ActiveConnection to Nothing.
(If you plan on updating the database after you changes set the LockType to adLockBatchOptimistic)
Now you can make all the changes you want to your local recordset, when you want to update the database on the server you reset your ActiveConnection to a valid connection object and you call the method
Recordset.UpdateBatch
Let me recommend this very usefull tool on download.com:
http://download.com.com/3000-2404-10...ml?tag=lst-0-1
It does all this for you automatically.
Quote:
Originally posted by impelsys
Sorry for the topic!...
I have to copy an entire SQL Server Table into a "recordset" in VB6 and mantain the possibility of execute sql query on it without querying SQL Server.
The operation's structure is something like this:
Table SQL Server --> Recordset in VB6
Recordset in VB6 --> Query SQL --> Another Recordset in VB6
etc...
I have to make something like 300 query per second and my SQL Server is already busy...
thanks a lot.
Mauro
|