Wednesday, March 21, 2012

Saving a Database

My install of SQL Server 2005 runs like a dog. The SQL Management Studio splash screen lasts for 10 minutes, then when the Studio window appears it takes another 5 minutes to initialize.

I have SQL server installed on a Germane Server running Windows Server 2K, SP4. It has quad Xeon 2.8 GHz processors with 2GB RAM. 4 300GB drives in a RAID 5 configuration.

I have created 2 databases which I would like to save, uninstall SQL, then reinstall it. (I didn't install it the first time.)

Then load the 2 databases into the new install.

How do I do this?

The easiest way would be to detach the databases you wish to save, then copy the .mdf and .ldf files for those databases to a "safe" place. Once you've rebuilt SQL Server then move the files to the appropriate directories and attach them.sql

No comments:

Post a Comment