Can I remove the default constraint columns in SQL SERVER?
Answer Posted / pooja khanna
As i understand this question is not about removing the
constraint in a column. It is about removing the columns
containing default constraint.
If it is about removing the default constraint then given
answer no. 1 is absolutely correct.It's quite a bit similar.
However, if you want to remove column containing default
constraint,first you need to drop the default constraint
then you can remove the column/'s :-
First remove the constraint :
eg :- as answer 1.
step 1:- alter table <table-name> drop constraint
<constraint-name>
step 2: alter table <table-name>
drop column <column-name>
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Do you know what is a trace frag? Where do we use it?
What is index, cluster index and nonclustered index?
Which language is supported by sql server?
Difference between aggregate functions of sql?
How do I find the default sql server instance?
What are the advantages of partitioning?
Explain the dbcc pintable command when would you use it?
What are the kinds of subquery?
What happens if null values are involved in datetime operations?
How do I get to sql server configuration manager?
What is the difference between truncate and delete commands?
Which are the new data types introduced in sql server 2008?
What are the different types of lock modes in sql server 2000?
how can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role? : Sql server administration
What is default port number for sql server 2000?