Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Server Table Update
Message
 
 
À
29/03/2013 08:35:48
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 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01569522
Message ID:
01569527
Vues:
41
>Hi
>
>I'm using ODBC to connect to SQL Server in order to serve my application with data. My issue is this:
>
>If I select multiple records from MyTable, lets say 10 records, and I update the field MyTable.Counter with 1 to 10, i.e. the first record MyTable.Counter = 1, MyTable.Counter = 2, MyTable.Counter = 3 etc, etc. When I perform the tableupdate (I am using 5, table buffering rather than row), every record in MyTable.Counter is set to 10. If I suspend the code immediately before the update, the records are 1-10 as you'd expect, but the instant the tableupdate is performed I check on SQL Server and MyTable.Counter = 10 for all 10 records. It would appear that the last record I edit, the changes to that single record are copied across to the other 9 records that I have edited.
>
>Any ideas?
>
>Thanks in advance.


If you run SQL Server profiler, can you see the command(s) send to SQL Server that performs the update?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform