Assuming the database has been shut down cleanly, you can use sp_attach_single_file_db or the new CREATE DATABASE ... FOR ATTACH .
EXEC sp_attach_single_file_db
@dbname = 'YourDB',
@physname = N'C:\YourFile.mdf';
OR
CREATE DATABASE YourDB
ON (FILENAME = 'c:\YourFile.mdf')
FOR ATTACH_REBUILD_LOG;
source
share