1
0
mirror of https://github.com/Microsoft/sql-server-samples.git synced 2025-12-08 14:58:54 +00:00

Fixed string value so predicates work on case-sensitive server too

This commit is contained in:
Umachandar Jayachandran
2016-10-25 22:41:28 -07:00
parent fdd332d302
commit 1044cb98f7

View File

@ -30,7 +30,7 @@ select CAST(SERVERPROPERTY('IsAdvancedAnalyticsInstalled') as int) as IsRService
)))), 0) as ImpliedAuthenticationEnabled
, coalesce((select cast(r.value_data as int)
from sys.dm_server_registry as r
where r.registry_key like 'HKLM\Software\Microsoft\Microsoft SQL Server\%\SuperSocketNetLib\TCP'
where r.registry_key like 'HKLM\Software\Microsoft\Microsoft SQL Server\%\SuperSocketNetLib\Tcp'
and r.value_name = 'Enabled'), -1) as IsTcpEnabled
from sys.configurations
where name = 'external scripts enabled';</CommandText>