Collation conflict between “SQL_Latin1_General_CP1_CI_AS” and “Modern_Spanish_CI_AS” in the equal to operation

后端 未结 3 1398
天命终不由人
天命终不由人 2021-01-20 10:35

I was creating this SQL function from SQL SERVER 2008 R2 to WINDOWS AZURE, but I don\'t how to resolve this problem.

Msg 468, Level 16, State 9, Proce

3条回答
  •  抹茶落季
    2021-01-20 10:56

    These are ugly. I know of two ways to resolve this and neither are all that elegant:


    Change the collation of one of the databases to match the other: http://msdn.microsoft.com/en-us/library/ms175835(v=sql.105).aspx

    Or change the collation of each of the columns in your query/table to match the destination database: http://msdn.microsoft.com/en-us/library/ms190920(v=sql.105).aspx

提交回复
热议问题