+ Reply to Thread
Results 1 to 4 of 4

Access database linked with password protected SQL server

  1. #1
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    Access database linked with password protected SQL server

    I am currently trying to open a access table and my code keeps bugging out with "ODBC connection to db failed". I know it is because the SQL server requires a username and password but I'm not sure how to code that in the connection string for an access DB. Here is a part of my code! thanks for the help




    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    09-03-2015
    Location
    IE
    MS-Off Ver
    2003 - 2016
    Posts
    258

    Re: Access database linked with password protected SQL server

    'Access' and 'SQL Server' are 2 different products and your post is not clear if you are simply trying to connect to an Acess database (with 'normal' Access format tables) or an Access database with linked SQL Server tables.

    If it's purely Access then you can get example connection strings here, including examples with user ID and passwords.

  3. #3
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    Re: Access database linked with password protected SQL server

    I'm sorry it is a Access database with linked SQL Server tables and the SQL Server tables require a username and password. Thank you

  4. #4
    Forum Contributor
    Join Date
    09-03-2015
    Location
    IE
    MS-Off Ver
    2003 - 2016
    Posts
    258

    Re: Access database linked with password protected SQL server

    I would have thought the user ID and password would have been stored in the DSN for the SQL DB... but not easy to be certain remotely with an issue like this.

    This page shows how to create linked tables without using a DSN - even if you decide not to go down that route, there may be some useful information on the page as it shows connection strings with UID and PWD parameters included.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Formula to access the server document properties linked to SharePoint
    By sraoof in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-13-2016, 03:45 AM
  2. Replies: 2
    Last Post: 08-09-2014, 06:15 PM
  3. Replies: 0
    Last Post: 05-19-2014, 10:02 PM
  4. Open a password protected Access 2010 Database from a Excel
    By Cherry.P in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-24-2012, 09:09 AM
  5. Update Access Linked Tables ODBC to SQL Server 2008
    By RxMiller in forum Access Tables & Databases
    Replies: 2
    Last Post: 12-22-2009, 12:42 PM
  6. Reading Access Database that is password protected
    By SQUASH JUNKIE in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2008, 06:50 AM
  7. [SOLVED] How to access a database on a server from a local machine using od
    By Todd W in forum Excel General
    Replies: 0
    Last Post: 12-15-2005, 11:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1