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
Write a query to include a constraint, to check whether the employee salary is greater than 5000?
What is a collation?
what is hash nonclustered index
What is the syntax for encrypting a column in SQL Server?
What is used to replicate sessions between instances in coldfusion clusters?
How to find out what is the default collation in a database?
How to update muliple row in single query?
After removing a table from database, what other related objects have to be dropped explicitly?
What is Transparent Data Encryption?
How you can find out if an index is useful to the optimizer?
How to get the definition of a user defined function back?
How to create function with parameter in sql server?
What is built-in function?
Which Model uses the SET concept
How to get @@error and @@rowcount at the same time?