Modify SQL Database collation Modify table field collation

Source: Internet
Author: User

Modify SQL Database collation Modify table field collation

To modify the SQL database collation:

1. Modify to Single user mode

2. Then close all the query Windows and modify the Collocation properties of the options, such as: Chinese_prc_90_ci_as

3. Re-modify to multiuser mode

To modify the table field collation:

Using stored procedure processing, you can specify the corresponding table,

Stored Procedure processing steps:

1-delete excluding keys (with corresponding SQL statements)

2-Delete primary key (including corresponding SQL statement)

2.5-delete index (including corresponding SQL statement)

3-Modify the collation (including the corresponding SQL statement)

4-Generate the main key (including the corresponding SQL statement)

5-Generate the external key (including the corresponding SQL statement)

6-Generate index (including corresponding SQL statement)

7-Execute the corresponding SQL statement and export or do not execute the corresponding SQL statement only export

Stored Procedure Downloads:

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.