I am using the following code to connect to my server
Set db_sql1 = New ADODB.Connection
db_sql1.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=" & uname & ";password=" & pwd & ";Initial Catalog=CCFTEvent;Data Source=" & IPSqlServer
db_sql1.Open
but am getting the following error...
error [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
Can anyone help please?
The best part is that this very code has become machine dependant. On some machines it works and on some it doesnt.
Set db_sql1 = New ADODB.Connection
db_sql1.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=" & uname & ";password=" & pwd & ";Initial Catalog=CCFTEvent;Data Source=" & IPSqlServer
db_sql1.Open
but am getting the following error...
error [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
Can anyone help please?
The best part is that this very code has become machine dependant. On some machines it works and on some it doesnt.