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
 General SQL Server Forums
 New to SQL Server Programming
 is rollback possible?

Author  Topic 

sunsanvin
Master Smack Fu Yak Hacker

1274 Posts

Posted - 2006-08-29 : 01:21:29
hi friends,

is it possible to roll back a transaction here? i heard that it will be possible only if we wrote the code only in certain block.please tell me the block.


vinod

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2006-08-29 : 01:32:12
if you write a code in block of Begin Tran . Rollback Tran then only its possible to Rollback, else its auto commit.

Chirag
Go to Top of Page

byrmol
Shed Building SQL Farmer

1591 Posts

Posted - 2006-08-29 : 01:42:12
You can set how SQL Server performs transactions by default..

Out of the box it is auto commit...

I'll leave it to you to find out

DavidM

Production is just another testing cycle
Go to Top of Page

sunsanvin
Master Smack Fu Yak Hacker

1274 Posts

Posted - 2006-08-29 : 02:44:07
thank you David, i got information in BOL
Go to Top of Page

byrmol
Shed Building SQL Farmer

1591 Posts

Posted - 2006-08-29 : 03:12:29
No problems at all mate!

It is good to see people doing there own research.. the best method of learning...



DavidM

Production is just another testing cycle
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-08-29 : 10:05:20

http://www.sommarskog.se/error-handling-I.html


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -