Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-05-31 : 09:10:30
|
| Keb writes "Can you wrap whole stored procedures up in transactions rather than just small groups of sql text. And would it be clever enough to rollback if necessary?" |
|
|
Page47
Master Smack Fu Yak Hacker
2878 Posts |
Posted - 2002-05-31 : 10:47:09
|
| A transaction is a single unit of work, defined by either an explicit begin transaction statement or the implicit start of a batch. A transaction is not defined by individual dml* or individual object execution. So yes, you can issue a begin transaction and your spid run stored proc after stored proc. When you issue a rollback transaction, it'll all be rolled back.----footnote:*(aside from autocommit transaction mode which will only effect you if implicit transactions are turned off and you don't issue a begin transaction....)<O> |
 |
|
|
|
|
|