Feb 24, 2003 #1 mbwmbk Programmer Dec 12, 2002 19 US I have a table with 100 rows. I need to add a unique id field to identify each row in the that table. How can I do that?
I have a table with 100 rows. I need to add a unique id field to identify each row in the that table. How can I do that?
Feb 24, 2003 #2 synapsevampire Programmer Mar 23, 2002 20,180 US In Enterprise Manager, add a field of type Int and select Identity = Yes, it should create the column and populate it. SQL Server 2000 -k http://www.informeddatadecisions.comkai@informeddatadecisions.com Upvote 0 Downvote
In Enterprise Manager, add a field of type Int and select Identity = Yes, it should create the column and populate it. SQL Server 2000 -k http://www.informeddatadecisions.comkai@informeddatadecisions.com
Feb 24, 2003 #3 BG12424 Programmer Jun 4, 2002 717 US Use an alter table command then specify the IDENTITY attribute. alter table << tablename >> add column << fieldname >> int not null identity _______________________________ regards, Brian AOL IM: FreelanceGaines Upvote 0 Downvote
Use an alter table command then specify the IDENTITY attribute. alter table << tablename >> add column << fieldname >> int not null identity _______________________________ regards, Brian AOL IM: FreelanceGaines