Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drop column failed
Message
From
09/03/2011 18:28:56
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01503074
Message ID:
01503123
Views:
17
>The default constraint was the one preventing the executuon of the DROP COLUMN. I now realized it myself, you do need to drop all constraints referecing the field prior to dropping the field.

Those that were causing me problems was because they have been created with the DEFAULT WITH VALUES clauses. All the fields that are created from the framework have a default values in the existing records (a blank value), in order to avoid NULL everywhere. Those that were created before do not have any constraint related to them. So, that explains it all. I have found a SQL that list the constraint for a column. Then, if one is found, I will remove it before proceeding. That will resolve the issue.

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform