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
 SQL Server Development (2000)
 error handling

Author  Topic 

gpiva
Starting Member

47 Posts

Posted - 2005-08-30 : 00:09:04
Hi Guys I need some advice on a tedius topic
I have some sp that incapsulate business logic and transactions
I read on an article that if you dont use error handling in the store procedure you will be never sure that the transsaction was successfull, to make it more clare if I run a sp like

sp_submitApplication

begin transaction

insert into QUA
insert into LAB
insert into CAB

commit transaction

WITHOUT an appropriate @error handling sql server WILL commit in any case my transaction even if 'insert into LAB' didn't do the job due for an error.

is this TRUE??


Any help will be appreciate.



Carlo

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2005-08-30 : 00:10:19
Please don't cross post

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=54509



Damian
"A foolish consistency is the hobgoblin of little minds." - Emerson
Go to Top of Page
   

- Advertisement -