Click here to Skip to main content
12,948,130 members (87,808 online)
Click here to Skip to main content
Articles » Database » Database » General » Revisions


3 bookmarked
Posted 24 Feb 2010

How to empty SQL Server 2005 database using cursor & sys.objects (Deleting All Tables, stored procedures, views & UDF’s)

, 30 Sep 2011 CPOL
1) You cann't drop any object in schemas other than dbo, so you MUST use sys.schemas system view properly.2) You cann't drop tables even in dbo schema if they are referenced by other ones, not dropped so far. Drop all FKs before tables.dva



Compare Revision Minor Date Status Editor
2 - publicly available No 30-Sep-11 2:52 Available kiran dangar
1 No 24-Feb-10 23:43 Available VDmitrovsky


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Russian Federation Russian Federation
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170524.1 | Last Updated 30 Sep 2011
Article Copyright 2010 by VDmitrovsky
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid