Groups | Blog | Home
all groups > sql server data mining > september 2003 >

sql server data mining : SQL Server 2000 ID Number


William (Bill) Vaughn
9/27/2003 4:03:40 PM
Ah, it's better to use the SCOPE_IDENTITY() function instead of the
@@IDENTITY global variable.

--
____________________________________
Bill Vaughn
MVP, hRD
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

[quoted text, click to view]

Andrew J. Kelly
9/27/2003 5:19:23 PM
You use the IDENTITY function. You can find more info in BooksOnLine on
how to use it.

--

Andrew J. Kelly
SQL Server MVP


[quoted text, click to view]

Kalen Delaney
9/27/2003 5:29:06 PM
Actually, in SQL Server IDENTITY is a property of a column. It is neither a
function, nor a datatype.
But, like Andrew said, you still need to get full details from Books Online.
Start in the CREATE TABLE section.

Also, please do not post more than one or two newsgroups. Any more is
overkill, plus some of the ones you listed are completely irrelevant.
--
HTH
----------------
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com


[quoted text, click to view]

Andrew J. Kelly
9/27/2003 7:46:47 PM
I believe he is referring to the IDENTITY datatype itself but I could be
wrong. If you only want to retrieve the value then use what Bill suggests.

--

Andrew J. Kelly
SQL Server MVP


[quoted text, click to view]

VideoSmeden
9/27/2003 9:17:00 PM
Hi
Please help me URGENT
How do i make an tableField with a
Auto-Incr, the same like in an access DB where it's
called AutoNumber

Thanx in advance
__________________________________________________________________ Flemming
Paulsen ICQ#: 270065050 Current ICQ status: + More ways to contact me
__________________________________________________________________

sergio
10/20/2003 11:24:43 AM
hi where are you planning to implement this?MSSQL?

if yes, you can make use of any numeric field(int, numeric) and you should
configure the table field by making the identity field to (YES), then you
can identify the seed you want to use...1,2 or 3 n+1....

=)
[quoted text, click to view]

AddThis Social Bookmark Button