Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote cursor update in SQL Server 2005
Message
De
17/03/2010 10:17:52
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01455035
Message ID:
01455082
Vues:
35
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform