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

Server name vs IP address

Status
Not open for further replies.

tatochka

Programmer
May 3, 2001
49
0
0
US
Can somebody tell me why if I specify a server name in Data
Environment property for SQL server I get a message "Connection failed...." If I specify IP address I get the connection. What should I look at to use server name?
 
I use OLE DB with ADO connection. I thought I should not worry about DNS .
 
It could be the WINS Server or it could be the hosts file on your PC needs looking at (assuming NT)
 
The server name (and IP) is in the host file. I am trying to connect from dif computers with dif operating system. When hit on Test Connection button the exact message is "Test connection failed because of an error i initialization provider. [DBNETLIB][ConnectionOpen (Connect().\SQL Server does not exist or access denied". If change server name to IP address connection established. Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top