tags:

views:

64

answers:

1

I used rollback conceptn in my proceduer in dom table

after execute then i ran the table like

select * from dom

but the query executed contionuosly not stopped how can i stop this

pls help

+1  A: 

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.

Randolph Potter
Er, ok then ... Glad I could help.
Randolph Potter
"Please do your homework." "Thanks, I'll try that." Like!
Henning