Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLSERVER Rollback
Message
De
03/01/2019 08:08:50
 
 
À
03/01/2019 04:09:29
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
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01665065
Message ID:
01665071
Vues:
65
>Dear Martin
>
>Thanks for helping me.
>But I want to know
>
>Should I not use
>
>Begin Transaction -- End Transaction
>
>Because you have removed it from my codes

BEGIN TRANSACTION and END TRANSACTION are VFP commands that affect VFP tables. They have no impact on SQL Server. Check out SQLSetProp and specifically the Transactions property for controlling remote transactions.

I also want to point out that your code would be more readable if you use NOT rather than comparison with logical values. That is, at least in my view, it's easier to read and understand:
IF NOT MyFlag
than
IF MyFlag = .F.
Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform