Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is rollback required ?
Message
From
24/08/2005 10:10:39
 
 
To
24/08/2005 09:48:50
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Oracle
Miscellaneous
Thread ID:
01043285
Message ID:
01043323
Views:
16
>>>Hello all
>>>
>>>Simple question :
>>>
>>>If i'm accessing mutilple tables from Oracle and if my inserts are within a transaction and if i want to roll back all the inserts do i need to rollback from each invididual tables are one rollback will revert all the data
>>>
>>>Eg
>>>
>>>...Orcle Connection..
>>>
>>>Begin Transcation
>>>
>>>do while not eof()
>>>
>>>sele a
>>> Insert ...
>>> a=tableupdate(.t.)
>>>
>>>sele b
>>> Insert ...
>>> b=tableupdate(.t.)
>>>
>>>if a and b
>>> end trans
>>>else
>>> rollback
>>>endif
>>>
>>>In this code will rollback revert both a and b or only b.
>>>
>>>Thanks
>>
>>If a and b are DBC's tables or remote cursors then YES.
>>Of course the VFP transaction commands don't touch the status of the ORACLE' transaction.
>
>Thanks for the reply, What is they are Remote Views ? could you explain VFP transaction commands don't touch the status of the ORACLE' transaction ?
>
A remote views is a remote cursor, but a remote cursor can not to be it.

Remote cursor is every temporary cursor not build with:
CREATE CURSOR
or
SELECT INTO CURSOR
Examples:
RV,SPT,VFP8's CA ...


VFP don't manage backend transaction.
You have to use SQLROLLBACK/SQLCOMMIT
or to use ORACLE's transaction commands.

>Thanks again,
Previous
Reply
Map
View

Click here to load this message in the networking platform