Solved

MDB (Access) to MDF (SQL)

Posted on 2007-04-03
7
4,331 Views
Last Modified: 2008-04-13
How I export a MDB (Access 2002) File to a MDF (SQL) File ?
Pleace... "For Dummies"

I have: VS2005, SQL Server 2000 and SQL Server 2005 (Express)
0
Comment
Question by:darcosys
7 Comments
 
LVL 9

Accepted Solution

by:
TheSloath earned 250 total points
ID: 18842405
Try Tools|Database Utilities|Upsizing Wizard...
0
 
LVL 8

Assisted Solution

by:Julianva
Julianva earned 250 total points
ID: 18842615
create a new database on SQL 2000. then use access export wizard to export all the tables to the new database on SQL.
0
 
LVL 1

Author Comment

by:darcosys
ID: 18842645
And now?
How convert the SQL Serve database in a MDF File?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 1

Author Comment

by:darcosys
ID: 18842682
Sorry   :)

I find the MDF in C:\Program Files\Microsoft SQL Server\MSSQL\Data directory

Thanks.


0
 
LVL 38

Expert Comment

by:Jim P.
ID: 18842732
You can't just open an mdb as an mdf -- you have to import it.

The mdf (Master Data File) and ldf (Log Data Files) are the files used by SQL as the data files. You can't just copy and paste them like you do an Access DB and expect them to work.

You can either use the upsizing wizard in Access to create a new DB and import the data. Or from the other side -- It wiould be the ETL? (formerly DTS) to import into a blank DB.
0
 
LVL 1

Author Comment

by:darcosys
ID: 18842918
mmm....

[The mdf (Master Data File) and ldf (Log Data Files) are the files used by SQL as the data files. You can't just copy and paste them like you do an Access DB and expect them to work.]

jimpen,  I copied and pasted the file of the directory C:\Program Files\Microsoft SQL Server\MSSQL\Data to the /App_Data directory and I erased it of the SQL Server and worked perfectly.
0
 
LVL 38

Expert Comment

by:Jim P.
ID: 18843202
Then SQL2K5 must have some self healing functionality. In SQL 2K you have to do detach/attaches to move the database locations.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now