Quantcast
Channel: SQL Server 2005 drop column with constraints - Stack Overflow
Viewing all articles
Browse latest Browse all 14

Answer by DCNYAM for SQL Server 2005 drop column with constraints

$
0
0

I believe explicitly dropping the constraints prior to dropping the column is a "cleaner" solution. This way, you don't drop constraints you may not be aware of. If the drop still fails, you know there are additional constraints remaining. I like being in control of exactly what is happening to my database.

Plus, scripting the drops explicitly guarantees the script and hopefully the results to be repeatable in exactly the way you intend.


Viewing all articles
Browse latest Browse all 14

Trending Articles



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