Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

alter column set default value

$
0
0

hi

i am using following query to set default value for the column

ALTER TABLE [Table] ADD CONSTRAINT [DF_Column Name] DEFAULT N'ABC' FOR [Column Name]

and the drop default query is

ALTER TABLE [Table] DROP CONSTRAINT [Column Name]

if the use change the column name then the drop default query will return error right.

how to handle this.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>