Published on

March 8, 2010

Understanding SQL Server Mirroring Error

Regular readers of my blog will be aware of my friend who called me a few days ago with a very funny SQL problem. This time, it did not take long before he called me up with another interesting problem, although the issue he was facing this time was not that interesting and also very specific to him, however, he insisted on me sharing it with all of you. Let us understand his situation at first.

My friend is preparing for the DBA exam Exam 70-450: PRO: Designing, Optimizing, and Maintaining a Database Server Infrastructure using Microsoft SQL Server 2008. As part of his preparation, he was trying to set up replication on his local laptop. He had installed two different instances of SQL Server on his computer, and every time he started the mirroring, it failed with a common error message:

The server network address “TCP://SQLServer:5023” cannot be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational. (Microsoft SQL Server, Error: 1418)

Before he contacted me, he searched online and checked my article written on the error in mirroring. However, he tried all the four suggestions, but it did not solve his problem. He called me at a reasonable time of late evening (unlike last time, which was midnight!). I even tried all the seven different suggestions myself, as previously proposed in my article; however, none of them worked.

While looking closely at the services, I noticed something very simple. He was running all the instances on ‘Network Services’. In fact, his computer was a stand-alone computer. There was no network at all. Also, there was no domain or any other advanced network concepts implemented. I just changed the services from ‘Network Services’ to ‘Local System’ as his SQL Server was running on his local system and there were no network services. This prompted a restart of the services. As this was not the production server but his development machine, we restarted the services on the laptop (do not restart services on a production server without proper planning).

After changing the ‘services log on’ account to localsystem, when he attempted to reconfigure the mirroring, it worked right away. In production servers, proper domains are configured and advanced network concepts are implemented, so I had never faced this type of problem earlier. My friend insisted on posting this solution to his situation, wherein there was no domain configured and setting up mirroring was throwing an error. According to him, this is bound to help people, like him, who are preparing for certification using a single system.

So, if you ever encounter a similar error while setting up mirroring in SQL Server and you are working on a stand-alone computer without any network services, make sure to check the ‘services log on’ account and change it to ‘Local System’. This simple step can save you a lot of time and frustration.

Click to rate this post!
[Total: 0 Average: 0]

Let's work together

Send us a message or book free introductory meeting with us using button below.