all groups > sql server connect > september 2003 >
You're in the

sql server connect

group:

SQL Server 2000 ID Number


Re: SQL Server 2000 ID Number William (Bill) Vaughn
9/27/2003 4:03:40 PM
sql server connect:
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]

Re: SQL Server 2000 ID Number 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]

Re: SQL Server 2000 ID Number 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]

Re: SQL Server 2000 ID Number 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]

SQL Server 2000 ID Number 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
__________________________________________________________________

AddThis Social Bookmark Button