Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SQL server can connect only thru IP address Expand / Collapse
Author
Message
Posted Thursday, April 2, 2009 2:36 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, August 14, 2012 3:04 AM
Points: 23, Visits: 58
I Replaced computer of secondary domain, which is also a sql server.

Name of the pc is same as erlier name.

SQL installation did not give problem or error.

but i cannot connect to sql server in enterprize as well query analyzer through its name. error registration failed... and SQL server does not exist or access denied [TCP/IP socket error]...

I can connect thru IP address but not through name.... server name is A002... i cannot connect thru A002... it is secondary domain.. the old pC was also secondary domain with same name.. old PC is not in the network currently

application that uses the database created on this server also behaves in same fations... in a path file if i put name it says server does not exist but if i put ip address it connects.

please opine.
Post #688619
Posted Thursday, April 2, 2009 6:44 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 12:10 PM
Points: 10,191, Visits: 13,115
Sounds like a DNS name resolution error to me. The DNS record for A0002 still probably resolves to the old IP address. What ip address does A0002 resolve to if you go to the command prompt and ping A0002?



Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Post #688796
Posted Thursday, April 2, 2009 10:40 AM


Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Wednesday, August 13, 2014 2:43 PM
Points: 772, Visits: 1,185
Sounds like DNS issues as well

Try a nslookup IP_ADDRESS in command prompt to see if it resolves to a name?


SQLServerNewbie

MCITP: Database Administrator SQL Server 2005
Post #689152
Posted Friday, April 3, 2009 1:51 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, August 14, 2012 3:04 AM
Points: 23, Visits: 58
i can ping to A0002 by name as well by ip address.

New PC is having the same ip.

Old PC has been given diff ip and diff name.
Post #689633
Posted Friday, April 3, 2009 1:59 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, August 14, 2012 3:04 AM
Points: 23, Visits: 58
C:\> nslookup 192.168.0.xx
prompts follwoing message

cannot find server name for adress 192.168.0.yy: (which is address of primary domain) non-existent server
server: unknown
ip adress: 192.168.0.yy

cannot find server 192.168.0.xx non-exesitent server

Please note - cannot connect to the sql only from my PC. other PCs are able to connect to A0002. My PC is running Windows 2003 with SP2 and SQL 2000 with SP4



Post #689637
Posted Monday, July 21, 2014 12:18 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, July 26, 2014 10:52 AM
Points: 1, Visits: 4
I had a similar problem while accessing SQL 2000. On the server I could login through IP but not through name. While trying many things I added a full stop (.) at the end of the name and it worked.

Now I can login from remote machine using 'server_ name' but at the local computer machine I can login using 'server_name.' Perhaps length of the server name could be an issue as it was only four characters in length.
Post #1594442
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse