How to figure out if a SQL Server instance has ForceEncryption turned on

09 Juni 2014

If you need to find out if a SQL Server instance has ForceEncryption turned on at a server level, the only reasonable way to do this is read it through the registry. You must look for:

HKEY_LOCAL_MACHINE\
SOFTWARE\Microsoft\Microsoft SQL Server\
MSSQL<version>.<instancename>\MSSQLServer\SuperSocketNetLib\ForceEncryption

May I also note that at least for SQL Server 2008 R2 where there’s the DMV for reading the sql server config in the registry sys.dm_server_registry this value is not tracked. You must resort to using xp_regread.

Neuen Kommentar hinzufügen

Angebot innerhalb von 24 Stunden

Ob ein großes kommerzielles System, oder eine kleine Business Seite, wir schicken ein Angebot ab innerhalb von 24 Stunden nachdem Sie diese Taste drücken: Angebot anfordern