Follow these steps to rebuild the databases and maintain their contents.
Back up the definitions of objects you want to preserve.
Use SQL Server Enterprise Manager to create scripts for all of the objects in the user databases and master database.
Export data from the user tables.
Use Microsoft Data Transformation Services (DTS) or the bcp bulk copy utility to unload the user data.
Rebuild the master database.
Run the Rebuildm.exe command prompt utility. You can select new character set, sort order, and Unicode values and rebuild the master database with these new settings.
Create new user databases.
Use SQL Server Enterprise Manager or the CREATE DATABASE statement to re-create the user databases.
Create objects using the scripts created earlier.
Use SQL Server Query Analyzer to run the scripts you created earlier.
Import data into the user tables.
Use DTS or BCP to load data back into the user tables.