Viewing 2 posts - 1 through 2 (of 2 total)
Let me see if I understand your problem. You are trying to do a dynamic SELECT statement and you are putting a column name inside of the variable to complete your...
February 3, 2004 at 10:08 pm
#492706
You can try to do something like this:
If exists(select * from table where key = @key)
insert into table (key,...)
values (@key,...)
else
return -1
...
December 18, 2003 at 7:03 am
#486921