Skip to content

Commit 8bfefe3

Browse files
committed
#3785 sp_Blitz linked servers
Show name. Closes #3785.
1 parent a80fac6 commit 8bfefe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sp_Blitz.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3319,9 +3319,9 @@ AS
33193319
'Linked Server Configured' AS Finding ,
33203320
'https://www.brentozar.com/go/link' AS URL ,
33213321
+CASE WHEN l.remote_name = 'sa'
3322-
THEN COALESCE(s.data_source, s.provider)
3322+
THEN COALESCE(s.data_source, s.name, s.provider)
33233323
+ ' is configured as a linked server. Check its security configuration as it is connecting with sa, because any user who queries it will get admin-level permissions.'
3324-
ELSE COALESCE(s.data_source, s.provider)
3324+
ELSE COALESCE(s.data_source, s.name, s.provider)
33253325
+ ' is configured as a linked server. Check its security configuration to make sure it isn''t connecting with SA or some other bone-headed administrative login, because any user who queries it might get admin-level permissions.'
33263326
END AS Details
33273327
FROM sys.servers s

0 commit comments

Comments
 (0)