解决SQL Server的cannot resolve the collation conflict问题

今天在创建一个存储过程时出现错误提示:

cannot resolve the collation conflict between "chinese_prc_ci_as" and "sql_latin1_general_cp1_ci_as" in the equal to operation

是一个字段的的collation设置为了sql_latin1_general_cp1_ci_as,执行下面的SQL,改为database_default即可:

ALTER TABLE blog_Content ALTER COLUMN SourceUrl  nvarchar(200) COLLATE database_default NULL

你可能感兴趣的:(解决SQL Server的cannot resolve the collation conflict问题)