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.
- open Command Prompt with administrator.
- Then go to the SQL server media file location. (eg cd “D:\SQL 2012\”)
- 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!!!