Is there a way to set the "Hide Instance" property of a SQL 2005 instance programmatically?
Every reference I find is for using the Configuration Manager GUI, but we need to create and hide instances in an automated setup prgram.
I was hoping that sp_Config and RECONFIGURE would do the trick, but the options don't seem to include hiding the instance.
I would appreciate any hints at where to look next. Thanks!
Hi Ted,
This flag is stored in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.N\MSSQLServer\SuperSocketNetLib\HideInstance
Set the decimal value to 1 to hide - if you need to do this from within MSSQL, you can use the registry xp's (xp_regread and xp_regwrite) - as these are undocumented, the usual warnings apply.
Cheers,
Rob
|||Perfect, thank you Rob, that is exactly what I was looking for.
-Ted
No comments:
Post a Comment