re: Recommending @@Identity? I Woudn't.

| No Comments | No TrackBacks
Rather than "bogus value", I'd say "unexpected value". I guess it's a matter of semantics, but bogus implies to me that the value has no validity at all, which isn't true. More directly, I'd say it will return the value of the most recently created identity value in the SQL Server session, which may or may not be the identity value of the table about which you are concerned.

Agreed, @@IDENTITY should NOT be suggested as a blanket solution for SQL Server.

No TrackBacks

TrackBack URL: http://betav.com/blogadmin/mt-tb.cgi/1861

Leave a comment

Pages

Powered by Movable Type 4.21-en

About this Entry

This page contains a single entry by William Vaughn published on September 11, 2005 9:05 AM.

Recommending @@Identity? I Woudn't. was the previous entry in this blog.

New Repository for VB Info -- http://vbfeeds.com is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.