Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you connect to an SQL table at a remote site

Status
Not open for further replies.

SBTBILL

Programmer
May 1, 2000
515
US
We are thinking about going to a co-location. What I am wondering is how would I write an ADO connection string to connect there. At this point I use a server name as the server instead of an IP address. Am being told would have to switch to an IP address.

Anybody have expierence with this?

Bill Couture
 
Bill,

In that case, something like the following might be what you want:

Code:
Provider=SQLOLEDB;Data Source=<IP address goes here>;User ID=YourUsername;Password=YourPassword;

This is pretty much the minimum. There are many other options, for example the default database and various security settings.

Mike



__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Hi Bill,

My experience with SQL Server connections strings is that IP addresses are pretty much interchangeable with server names.

pamela
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top