Skip to content

Commit a2222d4

Browse files
committed
ORDER BY in all sys objects query reference lowercase [name]. Changed to [Name] for case sensitive collations
1 parent 02ecb97 commit a2222d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sp_helpme.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ BEGIN
146146
and [ep].[name] = @ExtendedPropertyName
147147
AND [ep].[minor_id] = 0
148148
AND [ep].[class] = 1
149-
ORDER BY [Owner] ASC, [Object_type] DESC, [name] ASC;';
149+
ORDER BY [Owner] ASC, [Object_type] DESC, [Name] ASC;';
150150
SET @ParmDefinition = N'@ExtendedPropertyName SYSNAME';
151151

152152
EXEC sp_executesql @SQLString

0 commit comments

Comments
 (0)