Quantcast
Viewing all articles
Browse latest Browse all 14

Answer by Jeroen for SQL Server 2005 drop column with constraints

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 14

Trending Articles