Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Access MS SQL
Debby Lawrence 
     
2 years ago
Morning I have an access database front end linked to tables on MS SQL (backend).  I have just converted my backend to SQL so that the client can have multiple users over the country access the database.  When a users logs on I run 3 queries which update for example a Number of Days field called TAT.  When this runs on my local DEV Database (not linked to SQL) it takes a split second but when running on the front end takes > 10seconds -and the table being updated has only 40records - I shudder to know what will happen as it grows.  Any advise on this would be appreciated
Richard Rost  @Reply  
          
2 years ago
Are you running these as pass-through queries?
Kevin Yip  @Reply  
     
2 years ago
The Internet speed is what causes the delay.  Even if you have 300 Mbps fiber optic Internet speed like I do (you can check your Internet speed here:   https://www.speedtest.net ), accessing a database across the Internet is still too slow compared to accessing it locally.  To speed things up, you need to minimize data retrievals (both outgoing and incoming) and the amount of data involved in each retrieval -- and that will likely involve re-designing the queries.  Sometimes delays are unavoidable even if you've done your best to optimize the design.  That's why sometimes you see websites just hang and take a long time to load.
Richard Rost  @Reply  
          
2 years ago
Yeah, like my website before I moved it to the new server. LOL.
Debby Lawrence OP  @Reply  
     
2 years ago
Morning apologies for late response I have been away.  I am sure the internet speed is part of the problem Kevin.  @Richard - I am not using pass-through queries -  would this minimize data retrievals as suggested by Kevin?
Sami Shamma  @Reply  
             
2 years ago
Yes absolutely.
Depending on factors like your table sizes, and the number of records the queries needs to return, the pass-throgh can make a massive difference.


Sami Shamma  @Reply  
             
2 years ago
For example, if your table has 10,000 records and your query needs to return 10 records, a front-end query will send all 10,000 records over the network. On the other hand, a pass-through query will only return 10 records over the network.
Kevin Yip  @Reply  
     
2 years ago
Pass-through queries will help because they are "server-side" execution.  But pass-through queries need to be written in the native SQL syntax of the server.  For instance, SQL Server does not use "#" to indicate dates, but single quotes: '4/3/2024'.  It doesn't use Now() to return the current date and time, but GETDATE().  Wild cards don't use "*", but "%".  And so on.  In other words, native Access queries often have to be (totally) rewritten using native SQL Server syntax (called T-SQL).  I hope you are running a test system right now, because there could be substantial modifications (and learning, if you haven't learned all this) needed before you use SQL Server for real.
Debby Lawrence OP  @Reply  
     
2 years ago
Morning thank you all for that very helpful input.  I am completing an full SQL course as we speak.  the system is still in test mode (on the SQL server).   I wil rewrite the queries and see how it goes.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 4:28:20 AM. PLT: 1s