Ensure 'Hide Instance' option is set to 'Yes' for Production SQL Server instances

Kazi Ariful Haq 161 Reputation points
2020-11-14T04:50:18.343+00:00

Hi,

We are using SQL Server 2017 in our production environment. We got following requirement from our security team.

*"Ensure 'Hide Instance' option is set to 'Yes' for Production SQL Server instances"**

Is there any impact for database connection if we set 'Hide Instance' option is set to 'Yes'?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,866 questions
{count} votes

Accepted answer
  1. CathyJi-MSFT 22,286 Reputation points Microsoft Vendor
    2020-11-16T09:22:33.14+00:00

    Hi @Kazi Ariful Haq ,

    > Is there any impact for database connection if we set 'Hide Instance' option is set to 'Yes'?

    If you hide a named instance, you will need to provide the port number in the connection string to connect to the hidden instance, even if the browser service is running. We recommend that you use a static port instead of a dynamic port for the named hidden instance.

    If you hide a clustered instance or availability group name, cluster service may not be able to connect to SQL Server. This will cause the cluster instance IsAlive check to fail and SQL Server will go offline. To avoid this, create an alias in all the nodes of the clustered instance or all instances that host availability group replicas to reflect the static port that you configured for the instance.

    Please refer to MS document Hide an Instance of SQL Server Database Engine to get more information.

    Best regards,
    Cathy


    If the response is helpful, please click "Accept Answer" and upvote it.
    Hot issues October--Users always get connection timeout problem when using multi subnet AG via listener. Especially after failover to another subnet


1 additional answer

Sort by: Most helpful
  1. Erland Sommarskog 111.8K Reputation points MVP
    2020-11-14T10:45:06.943+00:00

    This blog post from my fellow MVP Thomas LaRock explains the concept: https://thomaslarock.com/2018/04/how-to-hide-an-instance-of-sql-server/

    You will have to determine whether it will have any impact at your site. Note that it does not disable the ability to connect by instance name.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.