R
Rain
Hi,
Im having a small problem. I have created an insert function which works
fine and dandy. In order to get the new row id I did the following.
Insert BLAH BLAH BLAH ;
select scope_identity();
Now I set the return type to scalar, but it insists on returning the value
1, which is the number of rows affected. Can anyone tell me what I need to
do in order to get the value without having to resort to creating another
select function to obtain it.
Thanks
Im having a small problem. I have created an insert function which works
fine and dandy. In order to get the new row id I did the following.
Insert BLAH BLAH BLAH ;
select scope_identity();
Now I set the return type to scalar, but it insists on returning the value
1, which is the number of rows affected. Can anyone tell me what I need to
do in order to get the value without having to resort to creating another
select function to obtain it.
Thanks