Do you know you can earn heaps of $$ by answering questions on kodlogs, for more info contact us through feedback link at footer? We are Australian based web site and pay you for answering questions

  • Register
Welcome to Kodlogs Q&A, where you can ask programming questions and receive answers from other members of the community. For programmers, by programmers Kodlogs is an open community for anyone that does coding. We help you get answers to your toughest coding questions, share knowledge with your coworkers in private, and find your next IT dream job.
0 votes
7 views
How to open an .MDF file? (Attach a Database in SQL Server)?

I have attempted several time but could not browse to that file, what could be reasons is it security? I don't know can any one suggest?
by (120 points)  
reshown by

1 Answer

0 votes
Try to do it through SQL Server Management Studio (SSMS), follow these steps:

1. Launch SSMS.

2. Connect to your SQL Server Instance.

3. In the Object Explorer right click on the Database.

4. You click Attach now.

In the Attach Databases window, click the Add button.

Browse to the directory containing the .MDF and .LDF files.

Choose the .MDF file, and press OK.

Press OK again to attach the database.

CREATE DATABASE command with the FOR ATTACH argument.
by (1.2k points)  
reshown by
...