472,133 Members | 1,113 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,133 software developers and data experts.

converting queries from Access2k to MsSql2k

Hi,

I'm converting an Access 2000 database to Sql Server and must be
missing something obvious.

Using the Import utility in Sql Server, the Access queries seem to get
executed and the resultant data imported as tables. Oops!

Using the Upsize lizard in Access 2003, the queries aren't even in the
selection list of "tables" to upsize. It looks like the Upsize wizard
isn't supposed to do queries.

How does one automate the migration of standard conforming queries to
Sql Server?

Of course, I expect to spend some time addressing the stickier
non-compliant queries, but there must be a way to do the easy ones.
What am I missing?

-Dave

Jul 23 '05 #1
4 1839
nib
dschl wrote:
Hi,

I'm converting an Access 2000 database to Sql Server and must be
missing something obvious.

Using the Import utility in Sql Server, the Access queries seem to get
executed and the resultant data imported as tables. Oops!

Using the Upsize lizard in Access 2003, the queries aren't even in the
selection list of "tables" to upsize. It looks like the Upsize wizard
isn't supposed to do queries.

How does one automate the migration of standard conforming queries to
Sql Server?

Of course, I expect to spend some time addressing the stickier
non-compliant queries, but there must be a way to do the easy ones.
What am I missing?

-Dave


I don't know that you can automagically convert queries from Access to
SQL. After all, the "easy" ones should already run in SQL.

All of Joe's ranting about writting standard SQL for easier migration
isn't sounding so silly after all... :D

Zach
Jul 23 '05 #2
Hi Dave,

The Import util. in SQL will give you the ability to import data from
tables as well as data from queries as if they were Views and not the
schema of the query. A dirty way of upsizing is to again use the Upsize
wizard in Access and when prompted accept the question to create an
Access project. This option whether you decide to keep the Access
Project front-end or not will upsize the schema for the tables and
queries. Through this process Query code that is T-SQL compliant and
not MS Access specific will be created on the SQL Server as a view,
stored proc. or function. A couple of words of advice on the upsize:

1 - Compile, compact and repair the db before upsize.
2 - Ensure that the code behind the queries are clean such as no double
quotes, no Access specific functions, etc...
3 - If large tables, upsize table schema in wizard and when complete
use DTS to import data, this will save some time.
4 - Verify through report at end of upsize, proper table and column
properties.

Hope that helps, Unfortunatly I have been through far to many of these.

RS
dschl wrote:
Hi,

I'm converting an Access 2000 database to Sql Server and must be
missing something obvious.

Using the Import utility in Sql Server, the Access queries seem to get executed and the resultant data imported as tables. Oops!

Using the Upsize lizard in Access 2003, the queries aren't even in the selection list of "tables" to upsize. It looks like the Upsize wizard
isn't supposed to do queries.

How does one automate the migration of standard conforming queries to
Sql Server?

Of course, I expect to spend some time addressing the stickier
non-compliant queries, but there must be a way to do the easy ones.
What am I missing?

-Dave


Jul 23 '05 #3
how many queries you worried about?
i can probably rewrite 20 access queries per hour into SQL Server

Jul 23 '05 #4
I don't know if this would be of any help, but I do this with some
frequency and set up some guidelines for being more efficient with the
conversions.

See

http://thecodegallery.org/modules.ph...rder=0&thold=0

Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

32 posts views Thread by robert d via AccessMonster.com | last post: by
reply views Thread by PC | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.