使用以下语句
CREATE DATABASE XMS_Standar
on (FileName='D:DBSXMS_Standar.mdf')
FOR ATTACH_REBUILD_LOG;
exec sp_detach_db 'XMS_Standar'
CREATE DATABASE XMS_Standar
on (FileName='D:DBSXMS_Standar.mdf')
FOR ATTACH_REBUILD_LOG;
exec sp_detach_db 'XMS_Standar'