我必須要改變一個SQL Server數據庫的整理要求:更改SQL Server數據庫排序
ALTER DATABASE solarwind95 collate SQL_Latin1_General_CP1_CI_AS
,但我得到這個奇怪的錯誤:
Meldung 5075, Ebene 16, Status 1, Zeile 1 Das 'Spalte'-Objekt 'CustomPollerAssignment.PollerID' ist von 'Datenbanksortierung' abhängig. Die Datenbanksortierung kann nicht geändert werden, wenn ein schemagebundenes Objekt von ihr abhängig ist. Entfernen Sie die Anhängigkeiten der Datenbanksortierung, und wiederholen Sie den Vorgang.
對不起,德國errror消息。我不知道如何將語言切換到英文,但這裏是翻譯:
Translation: Message 5075, Layer 16, Status 1, Row 1 The 'column' object 'CustomPollerAssignment.PollerID' depends on 'Database sorting. The database sorting cannot be changed if a schema bound object depends on it. Remove the dependency of the database sortieren and retry.
我得到一噸更像是錯誤的。
你說「刪除架構綁定不會有幫助」。你有什麼問題?它爲我工作得很好。 – 2010-05-30 15:31:01
@Anthony Faull:改變整理只會改變系統表。要更改用戶表,您必須刪除所有依賴項:SCHEMBINDING只是一個依賴項。所以你的答案中的第6步不足以改變整理,所以它不會幫助你。 – gbn 2010-05-30 15:36:15
你說得很對。我已經擴展了我的答案以改變列。 – 2010-05-30 19:05:03