Prøv en af følgende ......
CREATE DATABASE HotelDB
ON (FILENAME = N'C:\App_Data\HotelDB.mdf') --<-- The path to your .mdf
FOR ATTACH_REBUILD_LOG
GO
ELLER
CREATE DATABASE HotelDB
ON (FILENAME = N'C:\App_Data\HotelDB.mdf') --<-- The path to your .mdf
FOR ATTACH
GO