I have decided to change my SQL Server database collation; however it gives me the common schema-bound error.
The database collation cannot be changed if a schema-bound object depends on it
There are several objects listed on the error list above, including some constraints and statistics. I have no problem with removing the constraints' dependencies. My only problem is removing the statistics' dependencies.
The exact error is:
The statistics 'SampleStatistics' is dependent on database collation. The database collation cannot be changed if a schema-bound object depends on it. Remove the dependencies on the database collation and then retry the operation.
Here are some notes:
- I cannot delete the statistic, because the
Deleteoption is disabled. - I cannot generate the statistic's script, because the
Script Statistic asoption is disabled. - I have found the statistic in
sys.stats, but I cannot delete the record and I get this error:
Ad hoc updates to system catalogs are not allowed. 4) There isn't any way to change the collation or remove the dependency in the statistic's
Propertiesoption.
Is there anyway to solve the problem?