SQL Server Collation settings

  • SQL Server Collation settings

    Posted by DSC Communities on December 16, 2019 at 11:51 am
    • Waseem Dar

      Member

      December 16, 2019 at 11:51 AM

      ?Hello

      We have an ERP system that has specific collation settings in her MS SQL database server. We have another system that has her own collation settings in her MS SQL database server. Now we are setting up Power BI Report server (on-premises).Ā Appreciate if someone guide me about the collation settings for MS SQL server which will have Power BI Report server – should I use the standard settingsĀ Latin1_General_CI_AS or SQL_Latin1_General_CPI_CI_AS or of ERP system or it really makes no difference what the SQL Server collation settings are where Power BI Report server resides? Could there be any risk if collation settings are different from our ERP ones?Ā Thanks

      ——————————
      Waseem Dar
      Business Analyst

      ——————————

    • Hasham Niaz

      Member

      December 16, 2019 at 2:50 PM

      HI !

      Please ask your ERP vendor why they are using non-standard SQL collation. They might have a strong reason for using it.

      It sound like you seems there is no difference in using any of the collation, but it will not only effect your system performance but sometimes simple join queries unable to match due different collations.

      Choose default SQL collations if your ERP vendor says its fine or during ETL transform those to standard SQL collations.

      Regards,

      ——————————
      Hasham Bin Niaz
      Director Data & Analytics
      Karachi, Pakistan
      ——————————
      ——————————————-

    • Waseem Dar

      Member

      December 16, 2019 at 4:21 PM

      ?Thanks Hasham. I did ask them and still waiting for the reply. It was actually a question whether using or not using default collation in SQL server for Report Server will make a difference. To me, SQL server is just keeping the published report data.

      ——————————
      Waseem Dar
      Business Analyst

      ——————————
      ——————————————-

    • Hasham Niaz

      Member

      December 16, 2019 at 5:55 PM

      HI Waseem !

      The question would be similar to as i keep my collation same for SQL & SSAS.

      I would suggest to keep SQL, SSAS & SSRS collations same as a bit of uniformity among different layers.

      Although i have seen in many cases these layers have different collations. So the decision relies on you, mostly SSAS & SSRS uses windows default collation which is [Latin1_General_CI_AS]

      Regards

      ——————————
      Hasham Bin Niaz
      Director Data & Analytics
      Karachi, Pakistan
      ——————————
      ——————————————-

    • Audrey Abbey

      Member

      December 17, 2019 at 1:33 PM

      Collation settings usually don’t cause an issue unless you have a case sensitive collation in the mix.
      That is an absolute nightmare.

      Fortunately, you can override/set collation at query level.

      SELECT ColA, ColB
      FROM Table
      ORDER BY ColB COLLATE Latin1_General_CI_AI;

      You can also put the COLLATE piece on one side of a join if you are trying to join across collations and need to force one side to match.

      Hope that helps.

      ——————————
      Audrey Abbey
      SR. BI Developer/Analyst
      LeapFrogBI
      Portland OR
      ——————————
      ——————————————-

    • Waseem Dar

      Member

      December 17, 2019 at 1:57 PM

      Noted, thank you

      ——————————
      Waseem Dar
      Business Analyst
      ——————————
      ——————————————-

    DSC Communities replied 5 years, 8 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘SQL Server Collation settings’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!