Cannot resolve collation conflict for equal to Operation

Source: Internet
Author: User

Cannot resolve collation conflict for equal to Operation

Again, when I used aspnet_regsql to create a database that provides services such as membership, I met again.
What should I do? Very troublesome !!! This is the problem of collation conflict every time.
First, the collation of the database for which I want to create services such as membership is SQL _latin1_general_cp1_ci_as, and the default value of SQL Server is chinese_prc_ci_as.
I think this is basically the case.

I decided to modify the SQL file used by the original aspnet_regsql.
The original SQL file does not contain collation. I add collate database_default to each character data type field.
But these are generally used in the SELECT statement.

This is not the case. Otherwise, the world will be messy. I used alter database [dB name] collate chinese_prc_ci_as to change the collation of the original database to the same as the collaction of SQL Server.

Reference:
Http://www.umachandar.com/technical/SQL2000Scripts/Main10.htm
Http://www.umachandar.com/technical/SQL2000Scripts/UtilitySPs/Main8.htm

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.