Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SQL 2005 fails after a LAN IP change

Posted on 2013-02-04
7
Medium Priority
?
323 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 60

Expert Comment

by:Kevin Cross
ID: 38851446
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
ID: 38851474
Hi Kevin,
yes I checked that and altered to the correct address, tried reboot as well

Jake
0
 
LVL 60

Expert Comment

by:Kevin Cross
ID: 38851505
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:odlaw_J5
ID: 38854587
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
ID: 38855156
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 60

Accepted Solution

by:
Kevin Cross earned 2000 total points
ID: 38856162
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
ID: 38856195
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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an OSPF network that automatically (dynamically) reroutes network traffic over other connections to prevent network downtime.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
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…
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…

715 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