Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An error occurred when attaching the database(s). Click the hyperlink in the Message column for details

Tags:

i am trying to attach external database named ( HaseebProject.mdf) but every time i got an error " An error occurred when attaching the database(s). Click the hyperlink in the Message column for details." What'sthe error is there..?? even there is any error message in message field as shown.enter image description here

When i click on add button to add database there are two paths in directory for database. i have tried with both but he same error.enter image description here

like image 203
Hafiz Ameer Hamza Avatar asked May 08 '16 14:05

Hafiz Ameer Hamza


People also ask

Can I attach MDF without LDF?

There are mainly two methods to attach SQL MDF file without LDF manually. Attach MDF File Without LDF file by Using SSMS: You can attach your SQL MDF file without LDF by following underlying steps. In Attach Databases Windows, Click on Add button to import MDF file in SQL server.


1 Answers

Try running SQL Server Management Studio as administrator

like image 141
Simone Avatar answered Sep 20 '22 17:09

Simone