We are SQL Server Experts. Call Us TODAY! +17738095456 or email us at sales@itimpact.com
  • The Team
  • Our Services
    • Dashboards Developers
    • Microsoft SQL Server
    • Microsoft SQL Server hosting for Access
    • SQL Server Integration Services (SSIS)
    • SQL Server Reporting Services (SSRS)
    • SQL Server Data Quality Services (DQS)
    • Microsoft Access
    • Microsoft VB.Net
    • Cross Functional / Business Unit Integration
    • Financial Statement Consolidation
    • Website Design
  • Case Studies
    • Automatic Reporting for Security Services Firm
    • Amazon API Integration with Access
    • Custom Quoting and Proposal Solution
    • Data Quality Analysis for Government Program
    • New Claim System Reduces Processing Time
    • Pipe Tracking Software
    • Product Search Analysis
    • Safety Training, Incident and Accident Tracking Tool
    • Union Dues and Membership Management System
  • Blog
  • Contact
  • The Team
  • Our Services
    • Dashboards Developers
    • Microsoft SQL Server
    • Microsoft SQL Server hosting for Access
    • SQL Server Integration Services (SSIS)
    • SQL Server Reporting Services (SSRS)
    • SQL Server Data Quality Services (DQS)
    • Microsoft Access
    • Microsoft VB.Net
    • Cross Functional / Business Unit Integration
    • Financial Statement Consolidation
    • Website Design
  • Case Studies
    • Automatic Reporting for Security Services Firm
    • Amazon API Integration with Access
    • Custom Quoting and Proposal Solution
    • Data Quality Analysis for Government Program
    • New Claim System Reduces Processing Time
    • Pipe Tracking Software
    • Product Search Analysis
    • Safety Training, Incident and Accident Tracking Tool
    • Union Dues and Membership Management System
  • Blog
  • Contact
Toggle panel Social icons
SQL Server

Optimize SQL Server with Access on a WAN

I recently responded to a post on UtterAccess.com regarding how slow his Access database was performing when the SQL Server was located in another state on the same WAN. I’ve reposted my response here with some additional info since I believe Access with SQL Server is the secret sauce needed for almost all Access applications.

To optimize you’re going to have to dig in and make sure you have the right views, indexes and keys in your database, as well as optimizing your code. It’s a lot of work but very rewarding, in fact I’ve been able to tune Access and SQL Server over Wan were the performance was BETTER with SQL then with an Access backend located on the local harddrive!

Here are some pointers for you if you’re not using an ADP file, then I’m going to end with a much more labor intensive suggestion later:
o Consider using local tables for data that rarely changes, for example, the list of state in the US. Many of these static tables are used for filtering and all of them should be on your frontend. You will need to add code that will update the local tables when there is a change, one approach is to do so on startup, where you can trigger a download by flipping a switch on a SQL table.
o Maximize the use of views on SQL Server instead of having Access doing the querying on the front end. You can then use the views as a recordsource on the form. To edit the data you will need to add index in Access and maybe a delete trigger in SQL.
o Make sure you’ve created foreign keys on your tables.
o Don’t load data when your form opens unless you must. Instead strip the recordsource property and require users to select a filter on your firm, then populate the recordsource property with your filter.
o Use just one connection in your code to perform ADODB operations and minimize the traffic to your server.
o Create views for all your reports, never have Access do any client side querying if you can avoid it.
o Optimize your views and SQL queries by using query analyzer, (Ctrl-L) in a query window in SSMS. You will need to copy the SQL statement from your view to a new query window, perform the analysis and then create any suggested indexes. This technique alone will improve operations immensely!

ADP is the way to go
ADP is the optimal combination of SQL with Access! There is only one connection being used, it’s designed from the ground up to work with SQL Server and in many cases it will be faster then a local Access backend. If you do go the ADP way prepare to work over some hurdles:

  • No local tables or storage
  • Login issues
  • Getting SQL Stored Procedures to work as a form’s recordsource can be tricky

No Comments on “Optimize SQL Server with Access on a WAN”

  1. Giorgio January 26, 2012 at 3:14 pm

    Hi Juan, haven’t ADP’s been deprecated from Access 2007 onwards?

    Reply
    1. Juan Soto Post authorJanuary 26, 2012 at 10:14 pm

      Hi Giorgio,

      Yes, ADPs are deprecated and I do encourage you to use alternatives, but I still use them with legacy projects and they still may be the best way to connect with SQL Server. It all depends on your needs.

      Kind Regards,
      Juan

      Reply
  2. andrej February 8, 2012 at 7:56 pm

    Hi Juan,
    I would like to ask you about ADP connection from Access 2010 to SQL. I had created ADP connection from Access 2003 (now migrated to Access 2010) and I was using the connection to SQL 2000. This connection had been working fine and fast. Now, I have migrated to SQL 2008 and my connection from Access 2010 to SQL 2008 take much more time than before. I have no idea why. Could you advise some solution? Thanks a lot
    Andrej

    Reply
    1. Juan Soto Post authorFebruary 8, 2012 at 7:59 pm

      Hi Adrej!

      Try the following:
      Does the 2003 ADP have the same issue with SQL 2008? If it does then the problem is with SQL Server.
      What version of SQL Server 2008 are you using? Is it Express R2?

      Thanks!
      Juan

      Reply
      1. andrej February 8, 2012 at 9:10 pm

        Hi Juan
        the issue is almost the same, I have just changed the network library (there was DBMSSOCN in connection to SQL 2003) and now is DBNETLIB in connection to SQL 2008. The reason was that DBMSSOCN library did not work in connection to SQL2008. The version of SQL is Enterprise Edition x64 SP2.
        thanks

        Andrej

        Reply
  3. Cees Monden September 4, 2012 at 2:25 pm

    Dear Juan,

    I am a veteran Access/SQL Server developer and fully agree on using ADP’s, however, Microsoft has with the introdcution of Access 2013 stopped support creating or even opening ADP’s (ade’s) and they have no intention to change their policy.

    Any suggestion ? as Pass Through queries are not supporting any parameters in stored procedures and ODBC is not a solution due to problems (performance) with BIG DATA.

    Cees Monden

    Reply
    1. Juan Soto Post authorSeptember 4, 2012 at 6:19 pm

      Hi Ces,

      I will be writing a blog post on that very topic next week, stay tuned!

      Juan

      Reply

Click here to cancel reply.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

XHTML: You can use these tags <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Recent Posts

  • 23 Jan. 2019 7 essential SQL skills that can help you command a higher paycheck

  • 18 Jan. 2018 Quick Guide on Importing Data from SQL Server (or SQL Azure) to Cosmos DB

  • 10 Jan. 2018 Top 7 Questions about Basic Availability Groups

  • 04 Jan. 2018 An introduction to mssql-cli, a command-line client for SQL Server

  • Share and work together on the intranet with SharePoint Team Sites

ITImpact

About IT Impact, Inc.

IT Impact, Inc.

IT Impact, Inc. is a minority-owned software company specializing in custom software solutions. We work with SQL Server, Microsoft Access, web applications, and much more.

Our staff is top of the line and includes two Microsoft MVPs!

Twitter

Tweets by @ITImpactInc

Facebook

© ITImpact. Webdesign by GreatCustomWebsites.com