How to change SQL server Collation?

SQL server collation is very important for Installing, Migrating (Dynamics GP from one server to another) and upgrade Dynamics GP. We always need to use standard collation which is mentioned in GP installation guide. Suppose if we want to change the SQL server collation after everything was configured in SQL server, we can rebuild our SQL server database with following below steps.

Before change the collation of SQL server, we need take a backup of all databases(lDF and MDF files) used within the SQL server instance. Then run the below command to change the SQL server collation.

  1. open Command Prompt with administrator.
  2. Then go to the SQL server media file location. (eg cd “D:\SQL 2012\”)
  3. Run the below command.

SETUP.EXE /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=Your Instance Name /SAPWD=SAPassword /SQLCOLLATION=New Collation Name /SQLSYSADMINACCOUNTS=SQL Admin Account

Example:

SETUP.EXE /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=SOMA\GP1 /SAPWD=Welcome.123 /SQLCOLLATION=Arabic_CI_AI /SQLSYSADMINACCOUNTS=”SOMA\Administrator”

4. After changed the collation open the SQL server management studio and attach all the database LDF and MDF file which was taken backup before changing the collation.

Hope this helps!!!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s