Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Drop a Column and All Corresponding Constraints Expand / Collapse
Author
Message
Posted Thursday, September 27, 2007 2:42 PM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, July 30, 2013 1:33 PM
Points: 162, Visits: 66
Comments posted to this topic are about the item Drop a Column and All Corresponding Constraints


Enjoy!

A Brown

Manage all of your backups in one simple job using this script.
Post #403763
Posted Friday, May 30, 2008 10:49 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, May 07, 2009 8:13 AM
Points: 5, Visits: 24
Just wonderful ! Thanks a lot !

Oh, just one suggestion: if, let's say, column not found, then cursor is not deallocated and script fails next time you try to run it. I would probably take "DEALLOCATE cur_constraints" out of IF/ELSE block.
Post #509255
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse