How to attached user database .MDF and .LDF file.
USE
[master]
GO
CREATE
DATABASE
[Application_Registr] ON
(
FILENAME
=
N'E:\Database\MSSQL$Sharepoint\Data\Application_Registr.mdf'
),
(
FILENAME
=
N'L:\Database\MSSQL$Sharepoint\Log\Application_Registr_log.LDF'
)
FOR
ATTACH
GO