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 table and views Expand / Collapse
Author
Message
Posted Thursday, June 5, 2008 12:25 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Friday, August 29, 2014 5:38 PM
Points: 75, Visits: 136
Comments posted to this topic are about the item Drop a table and views
Post #512386
Posted Wednesday, July 23, 2008 7:03 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, August 27, 2014 3:23 PM
Points: 4, Visits: 47
save yerself some typing:

if object_id('dbo.table_name') is not null
drop dbo.table_name

toss that at the top of the script too before dropping the sp ahead of the create statement
Post #539222
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse