Run this command:

CREATE DATABASE YourDatabaseName ON
(FILENAME = N’C:\YourDataFile.mdf’)
FOR ATTACH_FORCE_REBUILD_LOG
GO

 

Regards

Advertisements