1. Build a database 2, modify the server settings: allow multiple system directories to change 3, stop SQL Server4, cover the database file 5 of the newly established library with the original MDF file, restart SQL Server (this time the database should be quenched) 6 , Set the database as an emergency: update master.dbo.sysdatabases set status = 32768 Where name = dbname7, rebuilding log: DBCC Rebulid_log ('dbname', 'logfile')
(Source: http://community.9cbs.net/expert/topic/3159/3159962.xml? Temp = .691662)