Share via

import SQL Server DB tables into Access 2010

Anonymous
2010-11-30T16:07:21+00:00

Problem Description: I am using the 'import ODBC database' wizard in Access to try to import data from a sql server database named ctfdata.mdf.

  1. in the wizard, I do not know what to type in the 'Create a new datasource to SQL Server' input box labelled 'server'
  2. The path to the .mdf file is c:\Program files\Microsoft SQL server\MSSQL.1\MSSQL\data\
  3. if I just type in the filename, even with its full path, I get a message saying 'error 53' and 'error 17'
  4. the only successful import is when I use the 'Server Name' PC\SQLEXPRESS; but that only offers me unwanted .mdf files (system files used by SQL Server).
Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2010-11-30T17:20:28+00:00

You cannot directly import, or work with, .mdf files from Access.  They need to be attached to an existing AND RUNNING instance of SQL Server and then you can link to that SQL Server (create a DSN for connecting) and do the import.


Bob Larson Former Access MVP (2008-2010)

Was this answer helpful?

5 people found this answer helpful.
0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2016-10-02T05:59:40+00:00

    You cannot directly import, or work with, .mdf files from Access.  They need to be attached to an existing AND RUNNING instance of SQL Server and then you can link to that SQL Server (create a DSN for connecting) and do the import.


    Bob Larson Former Access MVP (2008-2010)

    Okay, well, so how do we do that? Fortunately someone posted something three years later.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2016-10-02T05:57:24+00:00

    Hi there.

    Oh yes you can!!!

    Here is what worked for me:

    http://www.youtube.com/watch?v=HYsujwWgmJU

    HTH

    Guy Cohen

    That helped but I had to guess at a few things. I posted a comment in the YouTube about what was different for me.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2013-08-16T06:12:54+00:00

    Hi there.

    Oh yes you can!!!

    Here is what worked for me:

    http://www.youtube.com/watch?v=HYsujwWgmJU

    HTH

    Guy Cohen

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2010-11-30T17:01:31+00:00

    I would guess it wants the NAME of the SQL Server

    And then it will probably want the name of the Database on the server

    And then possibly the name of the table you want to import


    John Spencer Access MVP 2002-2005, 2007-2010 The Hilltop Institute University of Maryland Baltimore County

    Was this answer helpful?

    0 comments No comments