I have a request to change the collation of a SQL Server Database:
ALTER DATABASE solarwind95
collate SQL_Latin1_General_CP1_CI_AS
but I get this strange error:
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.
Sorry for the german errror message. I do not know how to switch the language to english, but here is a translation:
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.
I got a ton more of the errors like that.
You’ll need to remove
WITH SCHEMABINDINGfrom your views and table-valued functions. To identify them you can query theINFORMATION_SCHEMAviews:ALTERscript of all schema-bound views and functions.WITH SCHEMABINDING” from the script.You can change the collation of all columns with this script: