DiscountASP.NET Forums

Go Back   DiscountASP.NET Forums > Site Programming, Development and Design > Databases

Reply
 
Thread Tools Search this Thread
Old 03-13-2009, 01:43 PM   #1
Joseph Jun
DiscountASP.NET Staff
 
Join Date: Jun 2007
Posts: 227
Restoring a database to its default state

A common request that we receive in the Technical Support department is to remove all database objects, and that can sometimes result in a major delay for what would seem to be a very simple procedure. I've attached a blank database that will allow you to restore your database to its default state and is compatible for SQL Server 2000, 2005 and 2008.

Just perform the following steps:

1. First and foremost, create a backup of your current database as this procedure will remove ALL present database objects. Use the Create A Backup utility to make a backup of your current database:
2. Download the attached dasp_cleandb.zip file and extract the dasp_cleandb.bak file.

3. Upload the backup file to the FTP server for your account.

4. Access the appropriate version of the Restore From Backup utility for your database:
5. If you have more than one database on a single database platform, make sure that you select the correct database from the drop-down menu or else you will lose all data for the wrong database.

6. Click on the "Browse Web Server for BAK" button, locate the dasp_cleandb.bak file and click on the "Select" button.

7. Now, just click on the "Restore Backup" button to invoke the restoration procedure.

Once the database restore has finished, you'll have a clean database.
Attached Files
File Type: zip dasp_cleandb.zip (38.9 KB, 125 views)
Joseph Jun is offline   Reply With Quote
Old 03-13-2009, 01:57 PM   #2
wisemx
Moderator
 
wisemx's Avatar
 
Join Date: Mar 2006
Location: Johnson City, TN. U.S.A.
Posts: 3,175
Send a message via MSN to wisemx
Excellent! This will be very useful.
wisemx is offline   Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restoring database on local machine wisemx Databases 4 02-07-2009 12:10 PM
SQL 2005 Default Database Eric Databases 19 07-10-2008 01:37 AM
Restoring a database using Management Studio Express cgwp Databases 1 06-04-2008 01:07 AM
using default.aspx instead of default.html for Silverlight wisemx Silverlight 2 02-22-2008 04:28 AM
problem restoring and killing access to my database patrick2 Databases 3 12-09-2006 02:26 AM


All times are GMT -8. The time now is 06:38 AM.


vBulletin ©Jelsoft Enterprises Ltd.