-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collation not supported with .NET 6 and German_Phonebook #1319
Comments
@Tatenshi, thanks for bringing the issue up. Just to clarify, with setting the Collation of the SQLServer to Have you tried with netcoreapp3.1 to see if the issue comes up? |
When i change the Database Collation to Greek or any other Collation i have tested, the issue disappears. So i would think, that you should be able to see the issue with the configuration you mentioned. I tried netcoreapp3.1 and it works just as net5.0. It seems like its just net6.0 that has the issue. |
https://docs.microsoft.com/en-us/sql/relational-databases/collations/collation-and-unicode-support?view=sql-server-ver15 doesn't list that encoding, it only lists the AS not AI version. |
I just tested it with ver15 and the AS Database Collation (German_PhoneBook_CI_AS). There the issue also appears. |
Closing this issue as this issue is similar to #1396 Please see the discussion there. |
Describe the bug
When executing a simple select using .NET 6 and the Collation German_PhoneBook_CI_AI the Exception "The Collation specified by SQL Server is not supported" is thrown. With .NET 5 as selected TargetFramework or when another Collation is selected (Tested with Greek and Latin1) it works.
I have tested it with SQLServer Version 14.0.1000.169, 14.0.1000, 14.0.3411 and 15.0.4138.2.
The Collation of the SQLServer is Latin1_General_CI_AS and the Collation the Table is German_PhoneBook_CI_AI.
Am i doing something wrong here?
To reproduce
This is a Console Application that i used to reproduce the issue.
Expected behavior
"TEST" is printed on the console without an exception
Further technical details
Microsoft.Data.SqlClient version: 3.0.1 and 4.0.0 preview 2
.NET target: .NET 5, .NET 6
SQL Server version: Version 14 and 15
Operating system: Windows 10 21H1
The text was updated successfully, but these errors were encountered: