Need some precision about PGSQLSCRIPT
Posted: Fri 22 Jan 2010 13:17
Hello,
I want to execute a script as a transaction. If that transaction succeed, then i want to do something else, else nothing.
First block as a transaction :
UPDATE ..... ;
Update something else...;
UPdate some more ;
Then :
some code...
another code
I would like to do all of that in the script if possible, for speed.
How would you write this script ?
I code in C#
If this cannot be done in only one script, can you please give the script, to be executed as a single transaction, the way to detect if the transaction commited, or rolled-back ?
Seb
I want to execute a script as a transaction. If that transaction succeed, then i want to do something else, else nothing.
First block as a transaction :
UPDATE ..... ;
Update something else...;
UPdate some more ;
Then :
some code...
another code
I would like to do all of that in the script if possible, for speed.
How would you write this script ?
I code in C#
If this cannot be done in only one script, can you please give the script, to be executed as a single transaction, the way to detect if the transaction commited, or rolled-back ?
Seb