I am getting the following error
無法解析的等於操作「Latin1_General_BIN」和 「Latin1_General_CI_AS」之間的排序規則衝突。無法解析「Latin1_General_BIN」,並在平等的「Latin1_General_CI_AS」之間的排序規則衝突操作
代碼
SELECT @PARTS = SUM(Llines_1.[qty]) from pick
RIGHT OUTER JOIN op AS Llines_1 ON pick.picknote =
Llines_1.[order_no] WHERE (pick.batchid = @batchid) AND (product = @product)
group by product Order By product
我已經厭倦了使用COLLATE SQL_Latin1_General_CP1_CI_AS前從,但仍然得到同樣的錯誤。
SELECT @PARTS = SUM(Llines_1.[qty]) COLLATE SQL_Latin1_General_CP1_CI_AS
from pick RIGHT OUTER JOIN op AS Llines_1 ON pick.picknote = Llines_1.
[order_no] WHERE (pick.batchid = @batchid)
AND (product = @product) group by product Order By product
,請複製粘貼代碼'COLLATE'。哪些列有不同的排序規則? –
編輯原稿以包含COLLATE的代碼。我不確定哪些列有不同的排序規則,我將如何確定它? – Emma
Emma,您可以在SSMS中的列的屬性頁面中查看排序規則 –