I'm working on a Microsoft Visio project and I need to open a recordset to a table in sql server, read the data and work on each record.
I've tested the result on several PCs and all are fine, except only one PC.
This specific PC throws Runtime error: 3706 "Provider can not be found" on .Open line in following script:
I've downloaded and installed Microsoft OLE DB Driver for SQL Server (MSOLEDBSQL) ver 19 from here, still the same error.
If I change the provider to the following, the script runs and does the job.
Why even after installing the latest driver, the PC shows that error?
Thanks.
I've tested the result on several PCs and all are fine, except only one PC.
This specific PC throws Runtime error: 3706 "Provider can not be found" on .Open line in following script:
SQL:
OpenConnection:
Dim Con As New ADODB.Connection
stCon = "Provider=MSOLEDBSQL;Server=Server;Database=MyDB;Integrated Security=SSPI;"
With Con
If .State = 0 Then
.ConnectionString = stCon
.ConnectionTimeout = 10
.Open
End If
End With
Return
I've downloaded and installed Microsoft OLE DB Driver for SQL Server (MSOLEDBSQL) ver 19 from here, still the same error.
If I change the provider to the following, the script runs and does the job.
SQL:
stCon = "Provider=SQLOLEDB;Server=Server;Database=MyDB;Integrated Security=SSPI;"
Why even after installing the latest driver, the PC shows that error?
Thanks.