Is there a program or rourtine to automatically move queries in Access to views or stored procedures in SQL server?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Moving queries to sql server (2007/2003)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Moving queries to sql server (2007/2003)
- This topic has 9 replies, 5 voices, and was last updated 18 years, 2 months ago.
Viewing 1 reply threadAuthorReplies-
WSHansV
AskWoody LoungerMarch 26, 2007 at 11:34 am #1057707Tools | Database Utilities | Upsizing Wizard can be used to transfer tables and queries to SQL Server. From the help for the Upsizing wizard dialog:[indent]
For SQL Server 2000 databases:
- Select queries that don’t have an ORDER BY clause or parameters are converted to views.
- Action queries are converted to stored procedure action queries. Access adds SET NOCOUNT ON after the parameter declaration code to make sure the stored procedure runs.
- Select queries that only reference tables (also called base queries) that use either parameters or an ORDER BY clause are converted to user-defined functions. If necessary, the TOP 100 PERCENT clause is added to a query that contains an ORDER BY clause.
- Parameter queries that use named parameters maintain the original text name used in the Access database and are converted either to stored procedures or inline user-defined functions.
[/list]
[/indent]The help item contains more info about the Upsizing Wizard.
-
WSZAve
AskWoody LoungerMarch 26, 2007 at 11:47 am #1057709I was using Access 2007 and SQL server express 2005 and it only gives an option for tables not queries that I could find. IS this a change for the’better’? A search in MSFT web site seems to suggest copying the sql statements one by one from Access and pasting them into the Query designed in SQL server. Look here: http://www.microsoft.com/technet/prodtechn…8.mspx?mfr=true%5B/url%5D
Thanks -
WSHansV
AskWoody Lounger -
WSZAve
AskWoody LoungerMarch 26, 2007 at 12:07 pm #1057713I am curious why? I am about to take on a project of attendance and grades for a school of 180 students. They each take 30 hours of class a week. that means the attendance table will have 180 * 30 * 25 = 135,000 records which I will need to manipulate to provide % of absences. Therefore, I have started thinking about SQL server. Do you think it justifies it? (Maybe this deserves a thread of its own for other people to join in?)
Thanks -
WSTonyR
AskWoody LoungerMarch 26, 2007 at 12:31 pm #1057716Hi,
Assuming that each year will effectively be just that and that the data in the db can be archived to some degree 138K of rows doesn’t sound too bad. I have an db in front of me that has 131K invoice transactions with 50K of products in it, the db backend is sitting at around 190meg – partly due to a very large volume of memo fields that contain document information. This db has been running with this volume on board for the last 2 years with no problems. We produce a heap of stock analysis reporting etc that yes can take a few minutes to run at times but again that is simply due to the complex nature of some of the reports.
Is the data you collecting annual? Would this data be archived as such or does it need to be available year on year real time? You can always archive the data to a 2nd db then just keep summary data in the main db.
We have not yet upgrade to SQL backend yet as the db still performs and is responsive enough for the user.
Cheers
Tony -
WSZAve
AskWoody Lounger -
WSpatt
AskWoody LoungerMarch 26, 2007 at 10:54 pm #1057814 -
WSHansV
AskWoody LoungerMarch 26, 2007 at 12:52 pm #1057719Access can handle hundreds of thousands, even millions of records without problems. Queries should be OK, although very complex queries might be slow.
The bottleneck might be the number of simultaneous users – if you have a handful of people entering/editing data simultaneously, you should be fine, but with ten or more, performance would go down.
-
-
-
-
-
WSMarkLiquorman
AskWoody LoungerMarch 26, 2007 at 2:28 pm #1057747I don’t think there is manual way to convert Access queries to SQL views. There are differences between SQL in Access and SQL on SQL server; not huge differences, but just a few little things: like different wild cards, use of single quote to delimit text fields and dates, etc. Plus many of the functions we’ve come to rely on in Access may not exist on SQL Server (like IIF).
I’ve found the best way to proceed is to move your tables to SQL Server, then determine what queries seem to lag and then convert them to pass-through queries in Access. At least for me, it is easier to manipulate them on the Access side than if they are Views on the server.
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Turning off OneDrive
by
CWBillow
1 hour, 2 minutes ago -
June 2025 updates are out
by
Susan Bradley
47 minutes ago -
Mozilla shutting Deep Fake Detector
by
Alex5723
11 hours, 19 minutes ago -
Windows-Maintenance-Tool (.bat)
by
Alex5723
11 hours, 22 minutes ago -
Windows 11 Insider Preview build 26200.5641 released to DEV
by
joep517
13 hours, 51 minutes ago -
Windows 11 Insider Preview build 26120.4250 (24H2) released to BETA
by
joep517
13 hours, 53 minutes ago -
Install Office 365 Outlook classic on new Win11 machine
by
WSrcull999
13 hours, 50 minutes ago -
win 10 to win 11 with cpu/mb replacement
by
aquatarkus
5 hours, 43 minutes ago -
re-install Windows Security
by
CWBillow
17 hours, 7 minutes ago -
WWDC 2025 Recap: All of Apple’s NEW Features in 10 Minutes!
by
Alex5723
20 hours, 48 minutes ago -
macOS Tahoe 26
by
Alex5723
15 hours, 2 minutes ago -
Migrating from win10 to win11, instructions coming?
by
astro46
3 hours, 6 minutes ago -
Device Eligibility for Apple 2026 Operating Systems due this Fall
by
PKCano
5 hours, 34 minutes ago -
Recommended watching : Mountainhead movie
by
Alex5723
6 hours, 18 minutes ago -
End of support for Windows 10
by
Old enough to know better
6 hours, 14 minutes ago -
What goes on inside an LLM
by
Michael Covington
27 minutes ago -
The risk of remote access
by
Susan Bradley
5 hours, 23 minutes ago -
The cruelest month for many Office users
by
Peter Deegan
12 hours, 30 minutes ago -
Tracking protection and trade-offs in Edge
by
Mary Branscombe
10 hours, 33 minutes ago -
Supreme Court grants DOGE access to confidential Social Security records
by
Alex5723
1 day, 19 hours ago -
EaseUS Partition Master free 19.6
by
Alex5723
19 hours, 49 minutes ago -
Microsoft : Edge is better than Chrome
by
Alex5723
2 days, 8 hours ago -
The EU launched DNS4EU
by
Alex5723
2 days, 21 hours ago -
Cell Phone vs. Traditional Touchtone Phone over POTS
by
280park
2 days, 11 hours ago -
Lost access to all my networked drives (shares) listed in My Computer
by
lwerman
3 days, 2 hours ago -
Set default size for pasted photo to word
by
Cyn
3 days, 8 hours ago -
Dedoimedo tries 24H2…
by
Cybertooth
2 days, 20 hours ago -
Windows 11 Insider Preview build 27871 released to Canary
by
joep517
4 days, 7 hours ago -
Windows 11 ad from Campaign Manager in Windows 10
by
Jim McKenna
2 days ago -
Small desktops
by
Susan Bradley
12 hours, 3 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.