Remove identity

Hi all,

Is there a way to remove the identity from a column
by using alter table

thanx



Answer this question

Remove identity

  • Dave Collins

    Hi,

    "disabling" the property does the things behind the scenes I mentioned in my earlier post. In SQL 2k (I didn't check that in SQL2k5 right now) it did a creation of a new table, copy the data to the new table, and renamed the table vice versa to the new / old name.

    HTH, Jens Suessmeyer.

    ---
    http://www.sqlserver2005.de
    ---


  • Spartan

    Hi,

    identity is no property, you have to create another column, copya the values to the new column and drop the old one.

    HTH, Jens Suessmeyer.

    ---
    http://www.sqlserver2005.de
    ---


  • nihk

    Hi,

    In the SQL Server Management Studio Express, when I right click in table, and I choice the modify option, bellow appear the column properties where I set the Identity Specification to No or Yes.


    This option disables/enable the identity

    But is there a way to disable the identity via command line

    thanx



  • DarkDragon03

    Thank u very much for your help


  • Remove identity