Mar 10, 2004 #1 shuklix Programmer Jul 15, 2003 21 AU Hi Is there an equivalent to sequence(in oracle) in Sql Server ? I need to have a auto incrementing sequence of numbers which would be used as a primary key for the table. Saurabh
Hi Is there an equivalent to sequence(in oracle) in Sql Server ? I need to have a auto incrementing sequence of numbers which would be used as a primary key for the table. Saurabh
Mar 10, 2004 2 #2 tomMuc Programmer Mar 10, 2004 3 DE sure! you can use the identity property. CREATE TABLE test ( id_key int IDENTITY(1,1) PRIMARY KEY ) definition: IDENTITY (seed , increment) Upvote 0 Downvote
sure! you can use the identity property. CREATE TABLE test ( id_key int IDENTITY(1,1) PRIMARY KEY ) definition: IDENTITY (seed , increment)