Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie question on SCOPE_IDENTITY
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01196646
Message ID:
01196730
Vues:
8
>
>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.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform