所以記錄一下 :
重點就是要在 Where 條件的欄位後面加上
Collate SQL_Latin1_General_CP1_CS_AS
(CS 代表 Case Sensitive)
範例 :
SELECT * FROM (
SELECT 'Test' AS Col1
) AS A
WHERE Col1 Collate SQL_Latin1_General_CP1_CS_AS = 'test'
SELECT 'Test' AS Col1
) AS A
WHERE Col1 Collate SQL_Latin1_General_CP1_CS_AS = 'test'
[參考TechNet]
thx, it is really help
回覆刪除