SCOPE IDENTITY
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 4 articles for 0.817 sec
Re: SCOPE_IDENTITY versus @@IDENTITY     

Group: microsoft.public.sqlserver.programming · Group Profile · Search for SCOPE IDENTITY in microsoft.public.sqlserver.programming
Author: SQL Menace
Date: Apr 18, 2008 10:12

... B but SCOPE_IDENTITY will give you the identity from table A (which most likely is... in between your insert and getting @@IDENTITY, you will get the value of the... your insert and your retrieving the identity value. Technically, this is a weak ... values inserted only within the current scope; @@IDENTITY is not limited to a specific scope.- Hide quoted text - - Show quoted text -...
Show full article (1.91Kb) · Show article thread
SCOPE_IDENTITY versus @@IDENTITY     

Group: microsoft.public.sqlserver.programming · Group Profile · Search for SCOPE IDENTITY in microsoft.public.sqlserver.programming
Author: bob
Date: Apr 18, 2008 08:14

Hi, i don't understand what one means with "current scope". Can someone give me a example in order to understand the difference between both? Thanks Bob SCOPE_IDENTITY returns values inserted only within the current scope; @@IDENTITY is not limited to a specific scope.
Show full article (0.28Kb)
Re: Pronalazenje zadnjeg recorda u bazi     

Group: hr.comp.programiranje.baze · Group Profile · Search for SCOPE IDENTITY in hr.comp.programiranje.baze
Author: Marko
Date: Apr 21, 2008 00:29

...u ovom threadu navedene) metode imaju mogucnost da u nekim situacijama vrate krivi ID. Umjesto Identity stavio sam Scope_Identity jer ima vise korisnika pa ako jos neko unese neki slog, onda ce vratitti krivi ID. Pretpostavljam da ce scope identity vratiti tocno onaj ID od onog recorda koji je unio taj korisnik u tom trenutku, zar ne?
Show full article (0.49Kb) · Show article thread
Re: Pronalazenje zadnjeg recorda u bazi     

Group: hr.comp.programiranje.dotnet · Group Profile · Search for SCOPE IDENTITY in hr.comp.programiranje.dotnet
Author: Marko
Date: Apr 21, 2008 00:29

...u ovom threadu navedene) metode imaju mogucnost da u nekim situacijama vrate krivi ID. Umjesto Identity stavio sam Scope_Identity jer ima vise korisnika pa ako jos neko unese neki slog, onda ce vratitti krivi ID. Pretpostavljam da ce scope identity vratiti tocno onaj ID od onog recorda koji je unio taj korisnik u tom trenutku, zar ne?
Show full article (0.49Kb) · Show article thread