SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Express Edition and Compact Edition (2005)
 How to clear the whole databse?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

moramoga
Starting Member

Costa Rica
34 Posts

Posted - 04/07/2007 :  15:43:06  Show Profile  Reply with Quote
Hi, my database i am working on is full of crab, who do I clear all the tables info?

SwePeso
Patron Saint of Lost Yaks

Sweden
30282 Posts

Posted - 04/07/2007 :  16:51:48  Show Profile  Visit SwePeso's Homepage  Reply with Quote
See this post http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=72957
Run it and then truncate all tables with the highest number first.
Then the second highest and so on...


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

jezemine
Flowing Fount of Yak Knowledge

USA
2886 Posts

Posted - 04/07/2007 :  18:40:15  Show Profile  Visit jezemine's Homepage  Reply with Quote
or:

1. script out all objects
2. drop the database
3. recreate from scripts


www.elsasoft.org
Go to Top of Page

Kristen
Test

United Kingdom
22431 Posts

Posted - 04/08/2007 :  02:41:11  Show Profile  Reply with Quote
See also:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=79596
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=37683
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000