Role Install - Fail to connect to SQL Server

John Lenz 1,721 Reputation points
2022-08-16T18:02:20.333+00:00

WSUS role - Server2012R2 STD (Hyper-V) Server name LongWSUS
SQL Server 2012 - Server2012R2 STD (Hyper-V) Server name LongSQL2012

Instance name - WSUS

I am re-installing WSUS role on LongWSUS and wish to use SQLServer as the repository. I setup a default instance on LongSQL2012 as WSUS and it completed successfully.

At Role Install - Database Instance Selection, it fails to connect

231656-sql-db-connect-failure.jpg

I also tried FQN and fails and last resort a "search:

231625-sqlserver-concetion-search-fail.jpg

I believe I have the credentials not setup correctly. Here is the WSUS instance default security

231657-wsus-db-security.jpg

What do I have to do to make the connection?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,171 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Amandayou-MSFT 11,046 Reputation points
    2022-08-17T08:36:27.253+00:00

    Hi,

    There are two points we should notice.

    point 1 Instance name - WSUS
    We have create the instance, so we should input 'LongSQL2012\WSUS' instead of LongSQL2012.

    point 2 The user longsoho\adminwsus has no permission in Logins, so we should add the user in Logins.

    231984-8175.png


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. John Lenz 1,721 Reputation points
    2022-08-17T14:42:21.25+00:00

    I added longsoho\adminwsus to logins with server roles I thought appropriate:

    232057-sql-wsus-login-for-adminwsus.jpg

    However, still same connection failure:

    232038-sql-db-connect-failure.jpg

    I know getting connections is always problematic between hosts. But I noticed in the connection instance failure the destination server is longwsus not longsql2012. Is this the problem and if so, how do i correct it?

    0 comments No comments

  3. John Lenz 1,721 Reputation points
    2022-08-17T15:08:53.283+00:00

    I did verify "allow remote connections to this server" on WSUS is checked

    0 comments No comments

  4. John Lenz 1,721 Reputation points
    2022-08-17T19:08:06.367+00:00

    I did further research an found I had to open firewall on SQL Server for port 1434 & SQLBroeser.exe. It connected

    0 comments No comments