Results 1 to 4 of 4
  1. #1
    RayMilhon is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085

    SQL Server Access using MS Access


    I have some Microsoft Access 2010 Databases that are used as a front end to SQL Server as the backend. We used Integrated Access to SQL server up until a short time ago. The SQL Server Database is maintained by our Corporate office and the Integrated access no longer works. So we're now using SQL Server logins to access the data. The problem is I have 2 databases that run an update routine on a daily basis that we require. Since the primary database is at corporate some of the queries we run locally take a good deal of time. I created a couple of make table queries that run automatically so the data for those reports is moved to the local Access database every morning and the reports are generated in seconds instead of hours. Now that the Integrated Access no longer functions these automated routines stop at a login prompt and require me to enter the password before the queries run wasting a couple of hours. Does anybody have an idea on how I can provide the password programmatically so it doesn't wait until I'm at my desk to run?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Are the tables linked? You can save the password when you link the tables.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Put it in the ODBC Connect Str property of the query
    ODBC;DSN=dsn;UID=username;PWD=password;DATABASE=db name

  4. #4
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    When dealing with a linked SQL database like this, for better query performance, consider using Pass Through Queries, where it actually runs the query on the SQL Server and only passes back the results (instead of retrieving ALL table data and then querying on the Access side).

    See:
    https://support.office.com/en-us/art...2-6DAC62532A42
    https://support.microsoft.com/en-us/...uery-in-access

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 06-08-2017, 07:32 AM
  2. ACCESS and SQL SERVER
    By elico in forum SQL Server
    Replies: 1
    Last Post: 01-31-2016, 04:34 PM
  3. Replies: 1
    Last Post: 02-23-2015, 07:06 AM
  4. Replies: 2
    Last Post: 11-21-2012, 09:57 AM
  5. access - FTP Server
    By mtownend in forum Access
    Replies: 2
    Last Post: 04-07-2011, 03:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums