Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the connectionhandle for the update.
Message
From
12/03/2004 02:59:07
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Changing the connectionhandle for the update.
Miscellaneous
Thread ID:
00885493
Message ID:
00885493
Views:
57
Hi,

I am using SPT to work with SQL Server Data. My approach is as follows:

I create a connection and use SQLExec to retrieve the results in a cursor.
When I have the cursor I use cursorsetprop to set the buffering, Tables, UpdateFieldList and some other properties to make the cursor behave like a remote view. After that I can make changes to the cursor and use tableupdate to update the SQL Server Data.

This all works fine, if the connection that created the cursor stays open. This is because the cursor needs the same connectionhandle, you used to retrieve the data, if you call tableupdate. The connectionHandle is stored in the ConnectionHandle property of the cursor, and is readonly.

Does anybody know how I can tweak this behavior (for example: set the readonly ConnectionHandle property) so I can open a connection, retrieve the data, close the connection, and reopen the connection only if I want to call tableupdate?

TIA,

Stefan
Next
Reply
Map
View

Click here to load this message in the networking platform