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

localhost

Status
Not open for further replies.
Jan 20, 2005
65
GB
I am trying to access an SQL server on my local machine from IIS but the script can never find the server, what is wrong?

connstr = "DRIVER={SQL Server};SERVER=127.0.0.1;UID=dbuser;PWD=dbpasswd;DATABASE=Northwind;
 
Try (local) instead of loopback IP address. What happens?

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
I used this as suggested

connstr = "DRIVER={SQL Server};SERVER=(local);UID=dbuser;PWD=dbpasswd;DATABASE=Northwind;"

and all works brilliantly!

Thank you !!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top