cmoreagain
Technical User
Does the ROLLBACK command work on remote views? My backend database is SQL I’m using remote views to access and update it. I’ve set buffering mode of the remote view to 5 so I can do a tableupdate and tablerevert. In my saving module I start with begin transaction and test if the tableupdate is successful or else I’ll rollback. The view rolls back but the backend database still gets updated.
Begin Transaction
Select RemoteView1
Replace test With 'x'
If !(Tableupdate(.T.))
Rollback
Sele RemoteView1
=Tablerevert(.T.)
Else
End Transaction
Endif
Requery('RemoteView1')
Begin Transaction
Select RemoteView1
Replace test With 'x'
If !(Tableupdate(.T.))
Rollback
Sele RemoteView1
=Tablerevert(.T.)
Else
End Transaction
Endif
Requery('RemoteView1')