|
3、If a database has amissing log file, OR if it won't attach because the .MDF and .LDF files werecopied from a machine where they hadn't been detached first, you cansuccessfully attach the database by:1.)Delete the logfile (if it exists)2.)Make sure the.MDF file is in an accessible location like C:\FlowmasterV7\Data3.)Run the followingSQL query from inside SQL management studio express:SP_ATTACH_SINGLE_FILE_DB'Flowmaster','C:\FlowmasterV7\Data\Flowmaster_Data.MDF'Click execute. Thisquery will generate a new, empty log file and attach the database. You mighthave to click "refresh" the server view to see the new database. |
|
共 2 个关于本帖的回复 最后回复于 2013-9-9 23:26