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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Does Raiserror automatically rollback?

Author  Topic 

tikus
Starting Member

31 Posts

Posted - 2004-12-10 : 12:41:15
Hello, one question. Does Raiserror automatically rollback transaciton/trigger? At least that's what i thought......

nr
SQLTeam MVY

12543 Posts

Posted - 2004-12-10 : 12:54:51
Nope

and you could test it for yourself easily enough

begin tran
raiserror('asd',16,-1)
rollback tran




==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -