Click here to Skip to main content
15,880,503 members
Articles / Productivity Apps and Services / Microsoft Office / Microsoft Access
Article

How to Import MDF File to Microsoft Access

Rate me:
Please Sign up or sign in to vote.
4.00/5 (1 vote)
24 Apr 2013CPOL3 min read 80.3K   7   1
An article that lists the steps to import MDF files to Microsoft Access

Introduction

Before starting conversion, copy MDF file to SQL Server.

Step 1

Go to start button all Programs -> Microsoft SQL SERVER 2008 -> SQL SERVER Management Studio -> Right click -> Run as Administrator.

Image 1

Step 2

Click on run as administrator. You will see a popup box asking for setup with two buttons YES or NO. Click on YES. After clicking on YES, the below window will appear.

Server Type-Database engine
Server Name- Your PC Name (Eample-GOURI-PC)
Authentication-If you choose Windows authentication, there is no need for login id and password and click on connect

If you choose SQL SERVER Authentication, give login id and password details and click on connect.

Image 2

Step 3

After connection has been established, the below window will appear. Right click on Databases and click attach.

Image 3

Step 4

After clicking attach, you will see the following window:

Image 4

Step 5

Click on ADD. You will see the below screen. Choose your respective database which you want to attach, then Click OK.

Image 5

Step 6

After clicking OK, select database which you have added before, then click OK. You are done with copying MDF file to SQL SERVER.

Image 6

Converting MDF File To Microsoft Access

Step 1

Go to start, select control panel.

Image 7

Step 2

Select Administrative Tools.

Image 8

Step 3

Once you select administrative tools, the below window will appear. Double click on Data Source(ODBC).

Image 9

Step 4

The below shown window will appear:

Image 10

Step 5

Click on ADD button on left. You will see list of drivers available, select SQL SERVER and click finish.

Image 11

Step 6

After clicking finish, one window will appear.

Image 12

Step 7

Give any random NAME and remember that name for future use. Select your server name from dropdownlist(Example- GOURI-PC).

Image 13

Step 8

Click Next Button.

Image 14

Step 9

After clicking Next Button, the below window will appear.

If you choose windows NT Authentication, then simply click next.

If you choose SQL SERVER authentication, give LOGIN ID and PASSWORD, then click next.

Image 15

Step 10

After clicking next below, choose change the default database to checkbox, then choose the database which you want to convert and click NEXT.

Image 16

Step 11

Uncheck the Perform translation for character data and click on FINISH.

Image 17

Step 12

Click on Test Data source.

Image 18

Step 13

If you see TESTS COMPLETED SUCCESSFULLY, click on OK.

Image 19

Step 14

Click on OK. One window will appear. Select the name which you have given in Step 7. Then click on OK.

Image 20

Step 15

All programs -> Microsoft Office -> Microsoft Access -> Click on NEW.

Image 21

Step 16

It's your choice to give name, then click create on left.

Image 22

Step 17

Select EXTERNAL Data from Menu Bar.

Image 23

Step 18

Select More -> Click on ODBC Database.

Image 24

Step 19

On clicking ODBC Database, the below window will appear, simply click OK.

Image 25

Step 20

After clicking OK, the small window appears. Select Machine Data Source -> Select the data source name which you gave in step 7, then click on OK.

Image 26

Step 21

After clicking Ok, databases list along with tables will appear. Select appropriate table which you want to convert to Access and click OK.

Image 27

Step 22

After clicking OK, the below screen will appear. Click on CLOSE.

Image 28

Step 23

After clicking close, your table which you have selected will display at the right side of Access page. Double click on table name, the table data will be displayed. You are done with conversion.

Image 29

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
This is a Social Group (No members)


Comments and Discussions

 
GeneralHow to Import MDF File to Microsoft Access Pin
deepthi.p7b4-Jun-13 2:22
deepthi.p7b4-Jun-13 2:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.