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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to connect to real SQL server using IP address?

Status
Not open for further replies.

adonet

MIS
May 4, 2004
312
US
I used test data as bellow in localhost:

<add key="DEMO" value="data source=localhost;initial catalog=DEMO;password=;persist security info=True;user id=sa;workstation id=CPU-TENOTEBOOK;packet size=4096" />

How to connect to real SQL server using IP address 199.188.235.66?
 
This is what I use.

<add key="ConnString"
value = "server=xxx.xxx.xxx.xxx;User Id = yourUID;Pwd=yourPWD;database=yourDB;Connect Timeout=30;Enlist=false"
/>
If you are using a port server=xxx.xxx.xxx.xxx,portNumber
hth,
Marty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top