Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 6th, 2005, 07:56 AM
Registered User
 
Join Date: Jan 2005
Location: hyderabad, Andhra pradesh, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default what does identity do

i want to know how to use IDENTITY do in sqlserver

DYNE


amruth
 
Old January 6th, 2005, 08:06 AM
Friend of Wrox
 
Join Date: Nov 2003
Location: Lehigh Acres, FL, USA.
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

A good source of information on this topic is SQL SErver Books Online.

Remarks from Books Online
SQL Server allows the row identity property on a single column within a table. Identity, like a primary key, identifies a row uniquely. SQL Server implements row identification using a numeric value. As rows are inserted, SQL Server generates the row value for an identity column by adding an increment to the existing maximum value.

A SQL Server column with identity must have a numeric data type that can be represented as an integer. For example, columns with the SQL Server data types int and decimal(4, 0) can have identity assigned.

If TRUE, this is, or will be, the single identity column for this table.

If FALSE, this column does not have the row identity property.



Jaime E. Maccou
 
Old January 6th, 2005, 09:45 AM
Friend of Wrox
 
Join Date: Dec 2004
Location: Chennai, Tamil nadu, India.
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

Check out this link :: http://vadivel.blogspot.com/2004/01/...-identity.html at my Old blogspace

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com




Similar Threads
Thread Thread Starter Forum Replies Last Post
@@IDENTITY use... neo_jakey Classic ASP Professional 1 May 3rd, 2008 06:47 AM
User Identity stonesbg ASP.NET 2.0 Basics 1 February 9th, 2007 11:14 AM
select into and identity joxa83 SQL Server 2000 2 August 30th, 2006 10:08 AM
@@IDENTITY Problem datagram Pro VB.NET 2002/2003 2 May 19th, 2005 01:34 PM
Identity soccers_guy10 SQL Server 2000 3 September 2nd, 2003 07:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.