Viewing 7 posts - 1 through 8 (of 8 total)
Yes, you pointed me to the right direction. It is a collation thing.
SELECT Id
FROM @s
ORDER BY Id COLLATE Latin1_General_CI_AI
SELECT Id
FROM @s
ORDER BY Id COLLATE SQL_Latin1_General_CP1_CI_AI
My database...
November 25, 2025 at 1:59 pm
Yes, you pointed me to the right direction. It is a collation thing.
SELECT Id
FROM @s
ORDER BY Id COLLATE Latin1_General_CI_AI
SELECT Id
FROM @s
ORDER BY Id COLLATE SQL_Latin1_General_CP1_CI_AI
My database...
November 25, 2025 at 1:59 pm

I got exactly the same result as with using NVARCHAR.
November 25, 2025 at 12:57 pm
I get the same (wrong) results, VARCHAR or NVARCHAR makes no difference.
November 25, 2025 at 12:15 pm
Hi Jeff,
Ik don't understand the BuildTestHierarchy stored procedure.
In my database I get the Employee table, but I don't see any column of type hierarchyid.
Do I have to do some additional...
December 2, 2011 at 1:48 am
Although you will find views, rules, defaults, etc. with the word "order" in them, you may not find ALL views, rules, etc. with the word "order".
For larger objects the text...
December 2, 2010 at 2:15 am
Another variaton, using the MONTH function:
SELECT [Month] = DATENAME(mm,SomeDateTime),
Amount = SUM(SomeAmount)
FROM #MyHead
WHERE SomeDateTime >= '2010'...
November 15, 2010 at 2:50 am
Viewing 7 posts - 1 through 8 (of 8 total)