create table x
(
id int identity (1,1) not null ,
...
)
you can add the field by
alter table x add id int identity (1,1) not null
In enterprise manager (yuk) by selecting the identity property in table design.
This is the eqivalent of the autonumber feld in access.
It is not guaranteed to be unique as it will just take the next value from the current seed so always needs a unique index.
It will also not be consecutive as any insert failures will leave gaps (as well as deletes).
======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.