I have a lot of columns with constraints to delete. Is there a way to have the code still delete the column even if it has a constraint? Or do I have to go through and delete every constraint first, then delete the column.
Thanks in advance!
I did try that, I took code from bol and I received an error. It seems like what you suggested will work. I dont know if I have the code wrong
Thanks for your help, and nice web site!
Stacy
What was the error? Please post your code. And thanks. If you want to get the best answer for your question read faq183-874 and faq183-3179. Terry L. Broadbent - DBA
SQL Server Page:
I apologize. I thought you were deleting rows from a table. If you are dropping a column from a table you must first drop the constraint. If you want to get the best answer for your question read faq183-874 and faq183-3179. Terry L. Broadbent - DBA
SQL Server Page:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.