我正在尝试使用以下查询更改数据库排序规则:
ALTER DATABASE TestDB SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
ALTER DATABASE TestDB COLLATE Finnish_Swedish_CI_AS
ALTER DATABASE TestDB SET MULTI_USER
执行此操作时,出现以下错误消息:
Msg 5075, Level 16, State 1, Line 5
The object 'Test_func' 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.
是否可以仅识别导致这些错误的那些对象? 我找不到任何查询来定位此类对象。