SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL server can connect only thru IP address


SQL server can connect only thru IP address

Author
Message
KET
KET
Valued Member
Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)

Group: General Forum Members
Points: 71 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.
Jack Corbett
  Jack Corbett
SSCoach
SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)

Group: General Forum Members
Points: 18554 Visits: 14898
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
At best you can say that one job may be more secure than another, but total job security is an illusion. -- Rod at work

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
Jerry Hung
Jerry Hung
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1410 Visits: 1208
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
KET
KET
Valued Member
Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)

Group: General Forum Members
Points: 71 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.
KET
KET
Valued Member
Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)

Group: General Forum Members
Points: 71 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
fayaz 54332
fayaz 54332
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search