The Native SQL driver is not installed on most machines here so I was string to switch to the native SQLOLEDB provider but some nuance does not work...
My connection string that did work looked like...
This does not work... Opening the connection I am getting "Invalid Connection string attribute"
Any idea where I am going wrong? ServerName is alphanumeric as is the instance and the PortNumber is of course numeric.
My connection string that did work looked like...
Code:
strConn = "Provider=SQLNCLI11;" & _
"Server=ServerName\INSTANCENAME,PortNumber; Database=DBNAME;" & _
"Trusted_Connection=yes"
This does not work... Opening the connection I am getting "Invalid Connection string attribute"
Code:
strConn = "Provider=SQLOLEDB;" & _
"Source=ServerName\INSTANCENAME,PortNumber;" & _
"Initial Catalog=DBNAME;" & _
"Trusted_Connection=yes"
Any idea where I am going wrong? ServerName is alphanumeric as is the instance and the PortNumber is of course numeric.