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 |
rohitmathur11
Yak Posting Veteran
77 Posts |
Posted - 2009-12-15 : 01:51:02
|
Hi,i need to update or delete data from database . I want rollback option ..if any thing goes wrong.. i tried declare @abc varchar(10) = 'xx';begin tran @abc insert into A_EMP values (2,1)rollback tran @abc but it is not working ..then how to use rollback .....? |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
rohitmathur11
Yak Posting Veteran
77 Posts |
Posted - 2009-12-15 : 02:04:39
|
Hi,thanks for reply... i tryed this brgin tran abc update ....rollback trn abc it is also working ... thanks |
 |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
rohitmathur11
Yak Posting Veteran
77 Posts |
Posted - 2009-12-16 : 00:01:35
|
I can\will use both ..i was just telling the other way..any way ...thanks a lot for helping me ... |
 |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|