Provider cannot be found(MSSQL/OLEDB)

More
2 years 9 months ago #22987 by bwu
Hi All,
    I just test on the writer, and it was configured with a tested MSSQL connection; but when I run sql with the connection, it shows "Provider cannot be found..."; I tested with both 32 and 64bit versions of this tool and got same results.
    Please help. thank you.

regards,
Bill
Attachments:

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #22988 by admin
Our software uses "Microsoft ole db provider for sql server"

Most likely it is missing on your computer.

I think if you install Microsoft SQL Server Management Studio it will be installed for you automatically



Please keep us posted on your progress

Mike
ETL Architect
The following user(s) said Thank You: bwu

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago - 2 years 9 months ago #22989 by bwu
Hi Mike, Thanks for your reply.
It works after adding "Provider=MSOLEDBSQL;" in the connection string. thanks.

seems I need to prepare the db table first in the target sql database, Is it possible to generate the database table automatically? 
Last edit: 2 years 9 months ago by bwu.

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago - 2 years 9 months ago #22990 by admin
I understand the issue and I have seen it a lot of times in the past

We will create a separate Wiki article to make life for our customers easier

Slight correction to the original post

Our software uses both ODBC and OleDb for working with MS SQL Server.

ODBC is used for testing connections and loading data using BCP
OLE DB Is used for editing data manually and running SQL script

As you are probably aware there are multiple clients of MS SQL Server available

When our software starts it looks for the highest available ODBC driver and it uses it
It also assumes that you have a matching  OleDB Provider for it (If you do not you get an error)

The logic is as follows:

GetListOfInstalledODBCDrivers 

  if DriverFound('ODBC Driver 17 for SQL Server') 
     BcpDLL   = 'MSODBCSQL17.dll'
     SQLODBC  = 'DRIVER={ODBC Driver 17 for SQL Server}'
     SQLOLEDB = 'Provider=SQLNCLI11.1'
 else 
  if DriverFound('ODBC Driver 13 for SQL Server')
     BcpDLL   = 'MSODBCSQL13.dll'
     SQLODBC  = 'DRIVER={ODBC Driver 13 for SQL Server}'
     SQLOLEDB = 'Provider=SQLNCLI11.1'
else
  if DriverFound('ODBC Driver 11 for SQL Server')
     BcpDLL   = 'MSODBCSQL11.dll'
     SQLODBC  = 'DRIVER={ODBC Driver 11 for SQL Server}'
     SQLOLEDB = 'Provider=SQLNCLI11.1'
else
   if DriverFound('SQL Server Native Client 11.0')
     BcpDLL   = 'Sqlncli11.dll'
     SQLODBC  = 'DRIVER={SQL Server Native Client 11.0}'
     SQLOLEDB = 'Provider=SQLNCLI11.1'
else
  if DriverFound('SQL Server Native Client 10.0')
     BcpDLL   = 'Sqlncli10.dll';
     SQLODBC  = 'DRIVER={SQL Server Native Client 10.0}'
     SQLOLEDB = 'Provider=SQLNCLI10.1'
else
if DriverFound('SQL Native Client')
     BcpDLL   = 'Sqlncli.dll';
     SQLODBC  = 'DRIVER={SQL Native Client}'
     SQLOLEDB = 'Provider=SQLNCLI.1'
  else
     BcpDLL   = 'ODBCBCP.DLL'
     SQLODBC  = 'DRIVER={SQL Server}'
     SQLOLEDB = 'Provider=SQLOLEDB.1'

So you may have a situation where you do not have a matching OleDB provider = You get an error

So back to my original suggestion.

if you install Microsoft SQL Server Management Studio the matching drivers  will be installed for you automatically
(Last time I did it, it worked)

Please keep us posted on your progress.

Mike
ETL Architect
Last edit: 2 years 9 months ago by admin.
The following user(s) said Thank You: bwu

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #23187 by prashant
This post was helpful to me !! my driver got sorted easily

I also found upon reading (I am getting old) it's no longer sql_ip:port , it's now sql_ip,port 

assuming my ip is 8.8.8.8 and port is 9000 , it's no longer 8.8.8.8:9000 it's 8.8.8.8,9000 

 
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #23580 by robl
The SQL Server Native Client (SQLNCLI11), which corresponds to the Provider=SQLNCLI11.1, is a deprecated driver.

Having the same issue, I solved this by downloading and installing the Microsoft SQL Server 2012 Native Client from the MSSQL 2012 Feature Pack. It installed OK side-by-side with updated drivers that are installed by MSSQL 2022.

www.microsoft.com/en-gb/download/details...%20Download%20Center
 
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save