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
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.
Try running SQL Server Management Studio as administrator
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With