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 2005 Forums
 SQL Server Administration (2005)
 Problems resulting from using Transaction

Author  Topic 

Oyekunle
Starting Member

1 Post

Posted - 2010-11-19 : 03:11:11
Hi,
I have a problem resulting from using 'Trans' in Stored Procedure for Sql Server 2005. Ideally, no table should be updated when an error occurs. That is there should be a roll-back of all data. But Some Columns get updated while some do not when there is an error. Pls I need Help on this.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-11-19 : 03:16:07
Show us your code. You've got a badly formed transaction if it's not rolling back everything.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2010-11-19 : 04:54:17
Do you check for errors after every statement? - i.e. do you continue after a rollback.
Is something being done on another connection.
Does something commit/rollback in the wrong place.

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

- Advertisement -