0

We do not appear (yes/No) for hide instance in SSCM for all SQL Server 2012 servers.

We are unable to see (yes/No) option for hide instance . Kindly assist me here .

Thanks a lot !

nbk
8,6996 gold badges15 silver badges27 bronze badges
asked Feb 20, 2021 at 21:26
0

1 Answer 1

1

This is the procedure: Hide an Instance of SQL Server Database Engine

Is the SQL Server Browser running?

The information to hide or show the instance is stored in registry. You can use extended stored procedure xp_instance_regwrite to update the registry value to hide or show the instance. Below T-SQL will hide the instance. To unhide instance set @value to 0 :

EXEC master..xp_instance_regwrite
 @rootkey = N'HKEY_LOCAL_MACHINE',
 @key =
N'SOFTWARE\Microsoft\Microsoft SQL Server\MSSQLServer\SuperSocketNetLib',
 @value_name = N'HideInstance',
 @type = N'REG_DWORD',
 @value = 1
 — 0 = No, 1 = Yes

To check if an instance is hidden you can use xp_instance_regread to check registry values:

DECLARE @getValue INT
EXEC master..xp_instance_regread
 @rootkey = N'HKEY_LOCAL_MACHINE',
 @key=
N'SOFTWARE\Microsoft\Microsoft SQL Server\MSSQLServer\SuperSocketNetLib',
 @value_name = N'HideInstance',
 @value = @getValue OUTPUT
SELECT @getValue

This method only prevents the instance from being listed on the network. It does not prevent users from connecting to server if they know the instance name.

Paul White
95.4k30 gold badges440 silver badges689 bronze badges
answered Feb 20, 2021 at 22:17

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.