System Center 2012 SP1 Configuration Manager (SCCM 2012) Installation: SQL Server Database Error when using Named Instance…

System Center 2012 SP1 Configuration Manager (SCCM 2012) Installation: SQL Server Database Error when using Named Instance…

  • Comments 31
  • Likes

Hi All,


Last week one of our customers was trying to install System Center 2012 SP1 Configuration Manager. During the installation customer encountered an issue with SQL Server when using Named Instance instead of Default Instance. MSSQLSERVER.

I decided to try out the scenario on my own test environment to simulate the same issue by configuring the SCCM & SQL Server using the Names Instance instead of using the Default Instance that work on Port 1433.


Here is my test scenario using 2 virtual machines.

Domain Controller: DC.MSFT.COM



There are steps I followed to begin my Configuration Manager deployment in my test environment.


INSTALL Windows Features for SCCM.CONTOSO.COM machine. Following are the prerequisites required.

 - .NET Framework 3.5

 - Remote Differential Compression (RDC)

 - Bits with IIS Role

 - PowerShell 2.0 Engine

Install WSUS Server Role

Install Windows ADK with USMT, WINPE & Other components. I have installed Windows Assessment Services as it includes its own SQL Express database (Just to avoid any additional complexity)

Create a Windows Firewall exception rule. Open WF.MSC. Create a new Inbound Rule for Port 1433, 4022 exception. Port 1433 to connect to SQL Database & Port 4022 for Service Broker. You can also enable these ports using a Group Policy.

Install SQL Server 2012 with Named Instance: SCCM


Till this stage everything was going smooth. I could open SQL Server Management Studio & connect to the database. Next step is to install the System Center 2012 SP1 Configuration Manager.

I launched the SCCM installer & started following the Primary Site Configuration. On the Database Information wizard screen I was getting the following error.




The error states…



Configuration Manager


Setup is unable to connect to SQL Server with the connection information provided.  Verify the following:

. The SQL Server and instance names are entered correctly

. The specified SQL Server instance is not configured to use dynamic ports

. If a firewall is enabled on the SQL Server, inbound rules exist to allow connections to the correct ports

. The account used to run Setup has permissions to connect to the specified SQL Server instance





As you can see it has given me few details to check with. And then I started checking everything 1 by 1.

For the first issue, I am sure that I have created an instance with correct name.

For the second issue, I have assumed that SQL Server will use Port 1433. So we are good. We will come to the same point back after 2-3 lines Smile

For the third issue I have manually created Firewall Port exception. So that was ruled out.

For the last issue I have used the default system account that SQL Server 2012 configured so this was also ruled out.


Now, let’s come back to Point 2 i.e. The specified SQL Server instance is not configured to use dynamic ports. In this example, this is the reason we are getting the error when using the Named Instance.

Here is the FIX


1.      Go to Windows Server Start Screen (yes Windows Server 2012 also has a new Start Screen as Windows 8 because of the shared codebase. NT Kernel 6.3 Build 9200 anyone J)

2.      Search for SQL Server Configuration Manager




3.      In SQL Server Configuration Manager, expand SQL Server Network Configuration. Click on Protocols for SCCM (SCCM is your Named Instance)

In the right side pane, right click on the TCP/IP (Status Enabled) and click on Properties





4.      In that click on IP Addresses tab. Scroll down to the bottom & make a change to IPALL. TCP Dynamic Ports -> Blank. TCP Port -> 1433 (as this is our default port for SQL Server Database Connection). Click on Apply.

And notice that you need to restart SQL Server (SCCM) Service.

Additionally, you can also configure the same for all the IP Addresses. IP1, IP2…etc. In my case I just made the change as specified above.




5.      To restart a service. Click on SQL Server Service. Right click on Instance Name: SQL Server (SCCM) and click on Restart. Wait for few seconds.




6.      Now, last step go back to your SCCM Installation. Fill in the details




7.      And…NO ERROR. You are on next screen that means you are ready to install SCCM using SQL Server 2012 Smile




So that’s how the SQL Server related issue got fixed. Enjoy Smile

































Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • thanks for this post

  • muchas gracias

  • Thanks for the info. Saved me a huge headache.

  • Thanks mate, for me I had to blank both fields (no 1433)

  • Thanks a lot :)

    I was stuck with this error from past 4 day, thanks for the help........ applause

  • awesome, thanks, this helped a lot!!!

  • Thanks For Helps

  • Excellent. It solved my issue.

  • Still getting the issue checked all of these?

  • Thnk god that you posted on website.... I was stuck with this error from past 4 day, thanks for the help

  • Thanks for posting this - SCCM is complicated as is, glad I found your fix for this issue.

  • Thank you this helped me out big time!!

  • I don't know how can I thank you, I was troubled by this for the past 3 days. Excellent article!!! One of the best I read recently.

  • Just a quick one here, I am trying to install SCCM 2012 but not with sql installed on the same box but SQL is installed on another server which is a clustered SQL server and i am getting the same error. I am trying to install just a primary site. Question is does SCCM 2012 require SQL to be installed on the same server the primary site will be installed or I can use a another database server in my environment

  • RockStar, thanks. Sometimes I think MS like to make themselves seem clever...