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

解决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
 
转自:http://www.cnblogs.com/dudu/archive/2011/01/11/1933203.html
原文地址:https://www.cnblogs.com/songrun/p/2984448.html