Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Begin transaction & sqlsetprop(handle,transactions,2)
Message
From
24/02/2004 12:32:48
Suhas Hegde
Dental Surgeon
Sirsi, India
 
 
To
24/02/2004 10:21:01
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00880173
Message ID:
00880358
Views:
42
Sqlsetprop(han,"transactions",2)
if tableupdate(2,.t.,"abc") and tableupdate(2,.t.,"xzy") && first returned .t. and second .f.
** Now manually disconnect to test .
SQLdisconnect(han)
** tableupdate(2,.t.,"abc")  actually commited the changes but 

SqlEXEC(han,"Begin Transaction")
if tableupdate(2,.t.,"abc") and tableupdate(2,.t.,"xzy") && first returned .t. and second .f.
** Now manually disconnect to test .
SQLdisconnect(han)
** did not commit the changes. ?? 
I was surprised also to see that in the connection manual transaction the profiler showed something as @@trancount > 0 commit (Although i dont remember the exact but it rollforward the transactions where in it actually shouldnt.)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform