• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1600
  • Last Modified:

Import Access 2002 data to SQL Server 2005 Express

Hi Experts,

I'm an amateur database developer working on an desktop database application intended for free distribution.  I have developed an application in Access 2002 VBA and would essentially like to start over using SQL Server 2005 Express and Visual Basic 2005 Express.  Before I can really start the new database project, however, I need to import numerous (25?) data tables from the existing Access 2002 application for use in SQL Server 2005 Express.  While it would be nice if the imported tables retained all of their data types, etc., I can reset all of that if I need to--I mainly want to avoid re-entering a fair bit of data within the tables.  I should mention that while I have quite a bit of experience with fairly complex queries in Access SQL, I have never used SQL for scripting (ie, creating databases, tables, etc.).

SQL Server 2005 Express does not seem to have an import feature, so I have considered the following two alternative means of proceeding; can anyone advise whether either alternative will work (or not work), or provide another solution?    The two ways are:  

1)  use the upsizing wizard in Access 2002 to create an SQL database, and then attach it to the SQL Server 2005 Express database.  Would this work?  If so, can the upsizing wizard be set to only upsize the tables (rather than all of the forms, modules, etc.)?  Would the tables then be integrated into the SQL Server 2005 Express DB file, or would they remain as seperate files (only really care about this to the extent that it would make distribution significantly more complex)?  

OR

2)  use the evaluation version of SQL Server 2005 (Standard edition), which I understand includes an import wizard, to import the data into SQL Server 2005 Express.  Note that I'm really only asking if this is technically possible, not about licensing issues (if my application turns out, I would get any necessary licenses before deploying).

Any other ideas?  Please be prepared for a couple of follow-up questions, because I am almost completely unfamiliar with SQL Server (reading the books now but can't do much until I can get my data imported...).

Thanks,

Tom
0
tmreiter
Asked:
tmreiter
  • 3
  • 2
1 Solution
 
adwisemanCommented:
Upsize only loads the tables from access to SQL server.  Access's upsize works very well.  That is what I would use, even if I had a standard or Dev version of SQL server 2005.
0
 
imran_fastCommented:
Go for the second option create your database in sql 2005 evaluation edition take a backup and then restore it in sql 2005 express edition.
0
 
tmreiterAuthor Commented:
adwiseman,

sorry for the basic question, but assuming I upsize the Access DB, what command/feature of SQL Server would I use to link the upsized tables to SQL Server Express?  I don't have the book with me right now, but if I recall correctly in SQL you can ATTACH data sources, CONNECT to data sources, etc.  Not sure if I understand the distinctions.  Bear in mind that this will be for a purely desktop application intended for distribution without too many complications.

Tom
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
adwisemanCommented:
There are 2 ways to utalize SQL Server with access.  One is to put the data in SQL server, and use linked tables in access.  You connect through access the same way you always have, only the data is actualy in SQL Server.  The other is to put the data in SQL Server and re-write you application to connect directly to the databse in SQL server.  Not using Access at all, and re-writing any functionalty you used access for.
0
 
tmreiterAuthor Commented:
adwiseman,

I am pursuing the second alternative (ie, data in SQL Server and re-write application, with no more use of Access at all once the tables have been upsized).  My question is how I put the data (once it's been upsized from Access) into SQL.  

If you give me the key concepts and terms I should be able to get the specific syntax from books, etc.  The basic problem is that I don't really understand the difference between the various ways ways of inserting or connecting data into SQL.

Tom
0
 
tmreiterAuthor Commented:
I used the upsizing wizard, and it seems like it worked like a charm...very simple, and the tables automatically appeared in my instance of SQL Server 2005 Express.  I'm sure I'll be back soon with more questions.

Thanks,

Tom
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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