Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4877
  • Last Modified:

MDB (Access) to MDF (SQL)

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
darcosys
Asked:
darcosys
2 Solutions
 
TheSloathCommented:
Try Tools|Database Utilities|Upsizing Wizard...
0
 
JulianvaCommented:
create a new database on SQL 2000. then use access export wizard to export all the tables to the new database on SQL.
0
 
darcosysAuthor Commented:
And now?
How convert the SQL Serve database in a MDF File?
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
darcosysAuthor Commented:
Sorry   :)

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

Thanks.


0
 
Jim P.Commented:
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
 
darcosysAuthor Commented:
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
 
Jim P.Commented:
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now