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, 1 month 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
-
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
6 hours, 2 minutes ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
4 hours, 1 minute ago -
Auto Time Zone Adjustment
by
wadeer
10 hours, 31 minutes ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
8 hours, 11 minutes ago -
Manage your browsing experience with Edge
by
Mary Branscombe
1 hour, 59 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
42 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
4 hours ago -
Apps included with macOS
by
Will Fastie
3 hours, 38 minutes ago -
Xfinity home internet
by
MrJimPhelps
3 hours, 33 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
3 hours, 31 minutes ago -
Debian 12.11 released
by
Alex5723
1 day, 7 hours ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
1 day, 11 hours ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
14 hours, 47 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
7 hours, 12 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
2 days, 4 hours ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
1 day, 18 hours ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
2 days, 6 hours ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
1 day, 23 hours ago -
Some advice for managing my wireless internet gateway
by
LHiggins
1 day, 6 hours ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
8 hours, 42 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
2 days, 16 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
4 hours, 32 minutes ago -
Does windows update component store “self heal”?
by
Mike Cross
2 days, 2 hours ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
3 days, 6 hours ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
1 day, 14 hours ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
1 day, 2 hours ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
3 days, 9 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
3 days, 9 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
3 hours, 44 minutes ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
3 days, 17 hours 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.