Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLSERVER Rollback
Message
From
03/01/2019 08:08:50
 
 
To
03/01/2019 04:09:29
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01665065
Message ID:
01665071
Views:
64
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform