Forum Discussion
Collation Error
- Anonymous7 years ago
Thank you, but I already found a solution without having to change the collation of the table from SQL Server. I did the following:
Create a View of the table you need from SQL Server, but do it like so:
USE [enter_database_name_here] GO CREATE VIEW [dbo].[enter_view_name_here] as Select [column_name] collate SQL_Latin1_General_CP1_CI_AS as new_column_name from table_name
Basically just collate all the columns. Now you can import or DirectQuery this view and you'll get the data.
I hope this helps anyone looking for an answer to this problem.
Anonymous,
I am afraid that you would need to ask your SQL Server administrator to change the collation for you. We are unable to solve this issue on Power BI side without changing collation.
Regards,
Lydia
Thank you, but I already found a solution without having to change the collation of the table from SQL Server. I did the following:
Create a View of the table you need from SQL Server, but do it like so:
USE [enter_database_name_here] GO CREATE VIEW [dbo].[enter_view_name_here] as Select [column_name] collate SQL_Latin1_General_CP1_CI_AS as new_column_name from table_name
Basically just collate all the columns. Now you can import or DirectQuery this view and you'll get the data.
I hope this helps anyone looking for an answer to this problem.