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

How to Drop Unused Empty Redundant columns Expand / Collapse
Author
Message
Posted Saturday, October 25, 2008 2:23 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Tuesday, August 13, 2013 9:52 PM
Points: 55, Visits: 157
Comments posted to this topic are about the item How to Drop Unused Empty Redundant columns
Post #591659
Posted Thursday, February 05, 2009 6:40 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Sunday, August 19, 2012 6:40 PM
Points: 207, Visits: 301
This could be a very risky script for people to use for two reasons:

* Column Names are typed SYSNAME, which is NVARCAHR(128) , not VARCAHR(30)
* You use dynamic SQL without QUOTENAME(), which means your script could fail on column names that are not regular identifiers.
Post #651369
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse