blogs.conchango.com

welcome to the conchango blogging site
Welcome to blogs.conchango.com Sign in | Join | Help
in Search

Rory Street's Blog

Do you want fries with that?

MS Access to SQL Server Express

There are plenty of novice coders out there who would like to move their old style ASP applications based on an MS Access database to .NET 2.0.

Its a great idea and it helps you learn how all those functions work in the .NET framework, and I would like to make the suggestion that if you are moving your applications across that you think about using MS SQL Server Express instead of MS Access. Its a lot more scaleable provides an easy upgrade path for your application to a full SQL Server install and whats more its free!

The only thing putting people off the migration is how on earth do you migrate your tables to SQL Express as there is no import utility! Well the easiest way I have found is to:

  1. Go into the Access database you want to export from, select a table you wish to export and then select export from the file menu.
  2. In the "Save as type" box scroll down to ODBC Databases
  3. Select OK on the box that appears
  4. Now unless you have a DSN already setup to your SQL Express Database you will need to setup one here by clicking on NEW
  5. Scroll down and select SQL Server
  6. Then browse to where your SQL Server Express .MDF file is and there you go!

Now the only down side in this approach is that you have to do this for each table! Ouch! If anyone has come up with a better way of doing this please let me know.

 

Published 13 March 2007 14:40 by rory.street

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Mike said:

You can use BCP. A command line util that ships with the Express edition, and is kind of a pain to use. But this may be your only option if you are moving data from one computer to another if you don't have both Access and SQL Express on one machine.
March 25, 2007 16:21
 

N Morrison said:

It should be doable with Access VBA no? Have it run through all of the tables and export them?
March 29, 2007 20:12
 

rory.street said:

Yeah I wasn't a big fan of BCP, but I suppose that was caused by me being so spoilt from interfaces such as good old DTS :)

March 29, 2007 20:43
 

rory.street said:

Access VBA? Now thats a good idea!

March 29, 2007 20:49
 

Jeff said:

You can also use MS Access's upsizing wizard (Tools/Database Utilities). It creates your sqlexpress column structures for you. The security settings can be confusing, but it's a great tool.
April 18, 2007 22:28

Leave a Comment

(required) 
(optional)
(required) 
Submit
Powered by Community Server (Personal Edition), by Telligent Systems