Quantcast
Channel: How to drop a column with constraints in SQL Server 2005 - Stack Overflow
Viewing all articles
Browse latest Browse all 28

Answer by Jeroen for How to drop a column with constraints in SQL Server 2005

$
0
0

Looking up the name of the contraint or using MSSQL design view is not always an option. I currently want to make a script for deleting a column with a contraint on it. Using the name is not an option since the name is generated and I want to use the script in different environments Dev/Sys/Prod/etc. Using the name is then not possible because the contraint names will differ per environment. I will probably have to look into the systems tabel but I agree there should be an easier option available.


Viewing all articles
Browse latest Browse all 28

Trending Articles



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