+ Reply to Thread
Results 1 to 2 of 2

SQL Server connection string variances - Error 3706 Provider not found

  1. #1
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    SQL Server connection string variances - Error 3706 Provider not found

    Hey all...

    I have a spreadsheet with some VBA code that connects to a SQL table (ADOB connection to SQL Server 2014) - works beautifully 90% of the time for the bulk of my users.

    However, I have multiple users in multiple locations, with varying versions of MS Office (2010, 2013, 2016... some 32 bit, some 64). Some users (about 5 out of 90 so far) get the 3706 error message "provider cannot be found" which I assume relates to the ODBC drivers installed, but I'm not really sure.

    I've varied the connection strings with some success, but with so many versions out there, it's hard to know who has what and make the appropriate modifications on the vba side

    Here are the connection strings that I've tried (all of them work for me):
    >>> What happened to the links to wrap the code ???<<<

    cn.Open "Provider= SQLOLEDB; Data Source=OBDEVSQLAGL05; Initial Catalog=DCollection;" & _
    "User Id=<<>>; Password=<<>>;"

    cn.Open "Provider= SQLNCLI10; Data Source=OBDEVSQLAGL05; Initial Catalog=DCollection;" & _
    "User Id=<<>>; Password=<<>>;"

    cn.Open "Provider= SQLNCLI11; Data Source=OBDEVSQLAGL05; Initial Catalog=DCollection;" & _
    "User Id=<<>>; Password=<<>>;"

    I'm not even sure which drivers would be needed... I have a bunch and have asked a few of those getting the error to get them installed, too:
    ODBC Driver 11 for SQL Server
    SQL Server
    SQL Server Native Client 10.0
    SQL Server Native Client 11.0

    Do any of you know if there is a better way to do this? I don't want to have to have these users open tickets to our IT department to install drivers if it's not necessary (we don't have admin rights to our desktops).

    Thank you!
    Last edited by JP Romano; 06-22-2018 at 10:07 AM.

  2. #2
    Registered User
    Join Date
    03-19-2021
    Location
    Berlin, Germany
    MS-Off Ver
    365
    Posts
    1

    Re: SQL Server connection string variances - Error 3706 Provider not found

    Thanks for this. I had the same problem, and through sheer dumb luck the first connection string in the list above did the trick.

+ 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. [SOLVED] Provider Cannot be found
    By Biplab1985 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-07-2017, 02:07 PM
  2. Error while establishing a connection with HP ALM server
    By sugaprasad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2016, 05:02 AM
  3. Error setting Connection String on QueryTable
    By matthew_b in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2015, 09:06 AM
  4. Run time error '3705': Operation is not allowed when the object is open
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-08-2014, 01:47 AM
  5. [SOLVED] Get Rid of Run Time Error '3705': Operation is not allowed when the object is open
    By boldcode in forum Access Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2014, 11:19 PM
  6. Provider Not Found
    By sawoodalam1989 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2013, 01:52 AM
  7. SQL Loop Problem Run-time error '3705':
    By chzwlkr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2011, 03:04 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