Removing a default value from a Sql Server 2005 table

Posted by Nikola Stjelja on Stack Overflow See other posts from Stack Overflow or by Nikola Stjelja
Published on 2010-04-14T07:28:56Z Indexed on 2010/04/14 7:33 UTC
Read the original article Hit count: 337

Filed under:
|

Hi,

I have a tabel in an Sql Server 2005 database. I have the following column

IndPL INT DEFAULT 0 NULL

I want to change the column to be of the type NVARCHAR but I receive a constraint violation due to the fact that the column has a default value constraint attached to it.

I need to find out how to remove a default value constraint from a table column or how to change the column type without impeding the constraint.

© Stack Overflow or respective owner

Related posts about sql-server-2005

Related posts about tsql