SQL Server : how to insert Identity in existing table -


i creating table:

create table emp6 (eno int constraint prkey primary key, ename varchar(15)) 

after creation of table, want add identity eno column. can add identity , can remove identity it?

no, cannot add or remove identity existing column.

if forgot make eno column identity, must drop table , re-create correct settings.


Comments

Popular posts from this blog

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -