Skip to content

Commit

Permalink
nullability fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EitanBlumin committed Mar 19, 2024
1 parent 24eaa33 commit b9c2904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utility Scripts/sp_GetSrvPermissions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ SET @sql =
ELSE ''LOGIN'' END +
'' ''+QUOTENAME(Logins.name' + @Collation + ') END +
CASE WHEN Logins.type = (''S'') THEN '' WITH PASSWORD = '' +
CONVERT(varchar(256), LOGINPROPERTY(Logins.name, ''PasswordHash''),1 ) + '' HASHED' +
ISNULL(CONVERT(varchar(256), LOGINPROPERTY(Logins.name, ''PasswordHash''),1 ), ''0xchangeme'') + '' HASHED' +
CASE WHEN @Version2005orLower = 0 THEN N','' +
'' SID = '' + CONVERT(varchar(85), Logins.sid, 1) '
ELSE N''' + ' END + '
Expand Down

0 comments on commit b9c2904

Please sign in to comment.