SQL: Could not resolve collation violation for equal to operation.

Source: Internet
Author: User

when the stored procedure was changed, there was an "unable to resolve collation violation of equal to Operation" error in SQL, which was found on the web, and the collation was different when elements were created between tables (one is collate chinese_prc_ci_ai_ws, One for collate sql_latin1_general_cp1_ci_as) COLLATE 一个子句,可应用于数据库定义或列定义以定义排序规则,或应用于字符串表达式以应用排序规则投影。General Solutions:You can add collate chinese_prc_ci_ai_ws directly after the associated field of the report. If you add or give an error, try the following options:  1.用 sp_helpdb 库名 2.在status列找到Collation=排序规则 3. select fromTable where collate 排序规则  not in ( select collate 排序规则  from DB2.表) 这两个排序规要统一成一个

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.