How to modify the sqlserver2005 system database collation

First of all, you must know the meaning of database sorting rules. For example, Chinese_PRC_CI_AS can be case-insensitive. The following are the rules at the beginning of Chinese_PRC:
_BIN
binary
sorting_CI_AI
is case-insensitive, accent-insensitive, kana type-insensitive, full-width-
insensitive _CI_AI_WS
is not Case-sensitive, accent-insensitive, kana type-
insensitive ,
full-width sensitive Half -width_CI_ASCase -insensitive, Accent-sensitive, Kana-type-insensitive, Full- width_CI_AS_WSCase -insensitive, Accent-sensitive, Kana-type-insensitive, Full- width_CI_AS_KSCase -insensitive, Accent-sensitive, Kana-type-sensitive, No Full-width sensitive_CI_AS_KS_WSCase- insensitive, accent-sensitive, kana type-sensitive, full-width sensitive_CS_AICase-sensitive, accent-insensitive, kana-type-insensitive, full-width - insensitive_CS_AI_WSCase-sensitive, accent - insensitive, kana type - insensitive , full-width sensitive _CS_AI_KS case- sensitive, accent-insensitive, kana type sensitive, full-width insensitive _CS_AI_KS_WS case- sensitive, accent-insensitive, kana type sensitive, full-width sensitive _CS_AS



















Case Sensitive, Accent
Sensitive
, Kana Type Insensitive
,
Full
Size Insensitive
Case, accent, pseudonym type, full half-width

If you need to re-set the database rules, the specific steps are as follows:
1. Find the installation package of sql2005
2. Execute the following batch process to specify a certain rule, such as Chinese_PRC_CI_AS
content As follows:
cd D:\SQL Server 2005\SQL Server x86\Servers
start /wait setup.exe /qb INSTANCENAME=MSSQLSERVER REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=sa SQLCOLLATION=Chinese_PRC_CI_AS
3. Re-attach the database and find that the collation has changed .

 

 

If you modify the collation of a field individually



 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327032712&siteId=291194637