Solved

SQL 2005 fails after a LAN IP change

Posted on 2013-02-04
7
306 Views
Last Modified: 2013-02-05
Hello Experts,
Windows Server 2003 with SQL 2005 SP1 installed and running in a single server enviroment.

Was working absolutely fine until I changed the LAN IP in network properties. Gateway and DNS also changed to match the new range.

Now I am seeing the following error:

Failed with the error: SQL Exception Error: .Net SqlClient Data Provider - An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)


Am I missing something? Is there more to just changing the network properties?

ANy help at all greatfully accepted.
0
Comment
Question by:odlaw_J5
  • 4
  • 3
7 Comments
 
LVL 59

Expert Comment

by:Kevin Cross
Comment Utility
Hi.

Have you tried to open SQL Server Configuration Manager and check the SQL Server Network Configuration | Protocols for MSSQLSERVER (or your instance name) | TCP/IP | IP Addresses tab to ensure it lists the proper, new, IP address?

Kevin
0
 

Author Comment

by:odlaw_J5
Comment Utility
Hi Kevin,
yes I checked that and altered to the correct address, tried reboot as well

Jake
0
 
LVL 59

Expert Comment

by:Kevin Cross
Comment Utility
Where are you seeing the error? Wherever it is, try to see if you can ping the SQL Server by name, noting the IP address it resolves to. It is possible the DNS A record is pointing to the old address.
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:odlaw_J5
Comment Utility
Ok I thought that maybe this was going to be a simple setting I'd missed but it maybe more. Please let me fill in the blanks as best I can.

We have a server (LIVE ORIG.) that was setup by another individual and we do not have any instructions to set up this server. Another server (LIVE NEW) is now required to be setup indentically except for the IP addresses. All the hardware is also indentical.

So this is my 'rough' procedure so far to bring LIVE NEW to be as LIVE ORIG.

1) Setup router with the same LAN IP range as the LIVE ORIG. With internet access but completely disconnected from any other LAN.

2) Installed windows server 2003, SQL 2005 and installed windows updates.

3) Restore a series of tape backups. System State and full restore of Hard drives inc C:

4) using MS SQL Studio retore latest database.

NOTE: before I go on I will mention a 3rd party service working in the background. This service connects to an external email exchange account, strips the attachment and then applies it to the SQL database. This service also logs what it is doing and it is this log where I have seen the error mentioned earlier.

NOTE 2: at this point it is also worth mentioning that the LIVE NEW is now virtually identical to the LIVE ORIG. even using same LAN IP range.

5)  performing a test proves successful and all is working fine

Making network changes.

1) Change the router LAN settings to the new IP range.

2) Change IP range on LIVE NEW and re-booted and re-connected everything.

3) Point the config.xml file for the 3rd party service at the new IP

4) test fails


Changes and settings I have checked/changed so far:

1) Your suggestion Kevin in your first post has been rectified.

2) DNS A record of the new IP exists and I have entered DNS forwarders to match the new network and ISP.


As you can probably guess the error is still occurring.
I hope this helps and I hope I've provided enough information but please let me know if you need more,

many thanks
Jake
0
 

Author Comment

by:odlaw_J5
Comment Utility
I understand I have a 3rd party service to investigate but I would have expected changing an IP range of a server to be fairly straight forward.

question ? forgetting the 3rd party service:

If I wanted to change the IP range in a single server enviroment with SQL 2005 installed would I just normally alter the TCP/IP settings for the NIC and the SQL network TCP/IP protocols. Should that work ?
0
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 500 total points
Comment Utility
Usually, you can just shut down SQL.
Change the NIC's TCP/IP properties.
Update the TCP/IP protocols in SQL to ensure it is binding to new IP address (check the IPv6 settings also).
Restart SQL Server.

This should work, pending there are no other requirements for IP address, i.e., hard-coded values anywhere.
0
 

Author Comment

by:odlaw_J5
Comment Utility
Thanks,

I have made some progress I'd somehow managed to edit the wrong *.config.xml file related to the 3rd party service I mentioned, after edited the correct one the error message has gone. Thank the lord, I was pulling my hair out.

As is the way with computers though I remove one issue and find another. But that's another story and, I think, unrelated to SQL.

You answered what I was presuming anyway and that it should not be rocket science to change an Ip range on a single server with SQL.

Thanks again for your input, the one thing I do find useful with this site is just being able to discuss the issue. That can help a lot.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now