Modify SQL Server R2 Server collation

Source: Internet
Author: User
Tags mssqlserver

After SQL Server R2 is installed, you find that the server collation is incorrect and you do not want to reinstall SQL Server.
Assume that the server collation for the current default instance is: Chinese_prc_ci_as, to be modified to SQL_Latin1_General_CP1_CI_AS
Steps:
In cmd mode
1. Enter the directory where the SQL Server installation files are located (the directory where the Setup.exe files are located)
2. Run the command: Net stop MSSQLSERVER
3, Setup/quiet/action=rebuilddatabase/instancename=mssqlserver/sqlsysadminaccounts=administrator/sapwd=xxxxxx/ Sqlcollation=sql_latin1_general_cp1_ci_as
(Sapwd is the password for SA or the login password for Windows Server)
The command format is: Setup/quiet/action=rebuilddatabase/instancename=instancename
/sqlsysadminaccounts=accounts/[sapwd= StrongPassword]
/SQLCOLLATION=COLLATIONNAME
)
4, Net start mssqlserver

Note: The modification may result in the loss of user-defined database such as reportserver/reportservertempdb, the loss of login, etc., of course, you can keep the login script, re-create login, additional database remediation, please carefully modify.

Modify SQL Server R2 Server collation

Related Article

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.