Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have purchased a Virtual Private Server (VPS) from a web hosting providers. It has a dedicated SQL Server Installed in it. I am trying to connect to the database from Excel using ADODB connection. It gives the following error.

[DBNETLIB]ConnectionOpen(Connect()]SQL Server does not exist or access denied.

I have tried several solutions suggested by various sites, but nothing works out. As per the information I received from the providers, this should be possible.

Connection String used:

"Provider=SQLOLEDB; Server=xxxxxxx\SQLEXRESS; Database=xxx; Trusted_Connection=True;Integrated Security=SSPI; "

Can any one help please?

Thanks
Raj
Posted

1 solution

I'd suggest to change connection string: http://www.connectionstrings.com/sql-server/[^] to which uses IP and username and password. Each server outside the LAN usually uses custom authorization ;)

Not enough information to post more detailed answer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900