>>
>>Take a look at
http://www.foxclub.ru/articles/index.php?id=46>>
>>and
>>
>>whole Thread #
1120919>
>The Thread you mention is very useful as it mentioned IDENT_CURRENT(). I didn't know of this function. And in fact when I replace SCOPE_IDENTITY with IDENT_CURRENT('mytable'), I get some value and not a dreaded NULL. I know that IDENT_CURRENT can be a problem as it what they refer to as it "crosses over connections". But at least I get some value.
>
>I know that SCOPE_IDENTITY() worked for me before, I just don't remember whether it was with SQL 2000 or this one, SQL 2005.
>
>Again, thank you for your help.
AND take a look at
SB Message #
1092660
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst