查询以获取有关在更改数据库排序规则时引起问题的对象的详细信息

时间:2019-11-28 09:47:31

标签: sql-server database sql-server-2012 collation

我正在尝试使用以下查询更改数据库排序规则:

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.

是否可以仅识别导致这些错误的那些对象? 我找不到任何查询来定位此类对象。

0 个答案:

没有答案