Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

SQL 2014 collation settings

Posted on by Microsoft Employee

Hello!

We are upgrading from Dynamics SL 2011 to SL 2015 and at the same time upgrading SQL server to v 2014, as the new version of Dynamics SL will not work on SQL 2008.

SQL 2008 has a collation set to Latin1_General_CI_AS whilst the SQL 2014 has the collation set to SQL_Latin1_CP1_CI_AS.

Our integrator is flagging this as an issue, seems they have to be the same.

Question then is will this collation difference be an issue or not?

TIA

Peter 

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SQL 2014 collation settings

    Erich,

    Thanks for your reply.  Appreciate the insight.

  • NameBrands Profile Picture
    NameBrands 50 on at
    RE: SQL 2014 collation settings

    www.olcot.co.uk/.../revised-difference-between-collation-sql_latin1_general_cp1_ci_as-and-latin1_general_ci_as

    If you don't have any international/foreign language data, it doesn't matter really.    The above web site will explain what can happen if you do have foreign language data.  

    The code page, language code identifier and comparison style are all identical on these 2 collations.

    We are using SL 2015 with SQL 2012 with collation SQL_Latin1_General_CP1_CI_AS without any issues for 4 months now.

  • Erich Strelow F Profile Picture
    Erich Strelow F 1,642 on at
    RE: SQL 2014 collation settings

    As far as I know, the collation is a database level setting. This means that each database within a server has its own collation setting. There shouldn't be a problem to migrate the SL databases to the new server and re-create them with a Latin1_General_CI_AS collation.

    There is indeed a server-level collation definition, but it reaches only the following:

    • Set the default collation for new database creation. But it's just the default, you can specify your own collation in the database creation process.
    • Sets the collation for the model, msdb, master, tempdb databases.

    This is the kind of things that appears in the "Before you begin..." section. This is so beause setting collates is as easy as I said in the moment the database gets created. If you try to correct it later you are in trouble. So, you should have a clear data migration procedure to sort this out.

    Having said that, the problems that might arise are:

    1. Worst case scenario: failed JOINS. This should be very rare. Different collation means different indexing and some JOIN operations may fail, leaving positively joined rows out of your favorite query. This indeed would leave your system useless, but I don't really think is beyond repair. You could always re-migrate your data or rebuild the indexes.
    2. Almost worst case: major migration errors. This means duplicate keys errors in the target database wich are valid data on the source database. Technically the migration can't happen. Since the "CI_AS" parts of your collations are the same, and given the kind of table keys SL enforces, this shouldn't be the case.
    3. Minor migration errors. This causes some data glitches that may not be abvious at first. The source "piña-colada song" may become the target "pi¥a-colada song".

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans