- First Open SQL Server Management Studio (SSMS). You may need to run as Administrator
- Right click the Databases folder and select attach from the menu.
- Click Add and select the mdf file. Click Ok, and then Click Ok again. You will get an error at this time because SSMS could not find the corresponding ldf file.
- Select the ldf file entry and Click Remove and then Click OK
- And that’s all folks