Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote cursor update in SQL Server 2005
Message
From
17/03/2010 10:17:52
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01455035
Message ID:
01455082
Views:
34
I've managed to get to the bottom of the issue, it was related to how the remote field names were defined in UpdateNameList:

? cursorsetprop('Tables', 'dbo.TestTable')
? cursorsetprop('UpdateNameList', 'Field1 dbo.TestTable.Field1, Field2 dbo.TestTable.Field2, Field3 dbo.TestTable.Field3')
? cursorsetprop('KeyFieldList', 'Field1')
? cursorsetprop('UpdatableFieldList', 'Field2, Field3')
? cursorsetprop('SendUpdates', .T.)

When I browse ltResults I can now make changes to the data, which are then reflected on the remote SQL Server.

What trigger implicitly performs the update with VFP? I notice that if I move the record pointer that will issue the change, but is there any way I can control this and if so, what other options do I have? For example, will that update take place if I select (and subsequently work) on another table?

Additionally, how would I wrap up this code in a transaction that'd allow me to perform a tableupdate or tablerevert based on other conditions within my application?

Regards
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform