Опитайте едно от следните ......
CREATE DATABASE HotelDB
ON (FILENAME = N'C:\App_Data\HotelDB.mdf') --<-- The path to your .mdf
FOR ATTACH_REBUILD_LOG
GO
ИЛИ
CREATE DATABASE HotelDB
ON (FILENAME = N'C:\App_Data\HotelDB.mdf') --<-- The path to your .mdf
FOR ATTACH
GO