Connection problem after IP change


I am using SQL Server 2000. My java appilcation uses microsoft jdbc driver.

I changed the IP of database server machine. After this, the java application refused to connect to sql server. However, I can get connected through Enterprise Manager and Query Analyzer. Following is the exception which I am getting -

java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing socket.

Any suggestions ??


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

what connection string are you using? Make sure you specify the right host in the connection string
Guy Hengel [angelIII / a3]Billing EngineerCommented:
Restart the SQL Server Setup, it will detect the IP Change and fix the server installation (very quick).
After that, connections should work again
vaibhavmishra062201Author Commented:
i've already done both of these things..

anyway, the issue is resolved now.
I restarted my webserver (tomcat) every time , but same problem was coming.
Finally, I removed the application from tomcat's webapps folder, and restarted tomcat without it, and stopped tomcat. Then again I put the application in webapps folder and restarted tomcat, and everything was fine.

thx anyway.

I request cleanup volunteer to give the points back.
you'll have to post that request in the community support TA, those are monitored.
Closed, 125 points refunded.
Community Support Moderator

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.