开发者

Roll back in SQL

I used rollback concept in my procedure in dom table. After executing, then I ran the table like:

select * from dom

bu开发者_Go百科t the query executed continuously and did not stop. How can I stop this? Please help.


From your comment, you have this:

create proc
    dom1
as

begin

begin trans
    insert into dom(value)
if flag=0
    rollback trans
else
    commit

So what is flag? What is value? How are you passing in the value?

I don't think your code is useful for us to help you.

Take a look at Books Online for more information about ROLLBACK, or make it easier for us to help you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜