2
SELECT [ID]
  ,[Name]
  ,[Markup]
  ,[Status] FROM [dbxyz].[dbo].[Block] WHERE Name = 'Hakkımızda'

Linq2Sql sends this query to SQL Server 2005 but because of the character problem (ı) it does not get the right dataset as a response. No rows returns.

I can not change the collation of database because it is a hosted service and I have no right to do so. I tried to change collation in column level but it did not work. What can I do?

Thanks

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
xkcd
  • 2,538
  • 11
  • 59
  • 96

2 Answers2

0

I think I'm gonna use ExecuteQuery. ( Bad job! :( )

http://weblogs.asp.net/scottgu/archive/2007/08/27/linq-to-sql-part-8-executing-custom-sql-expressions.aspx

xkcd
  • 2,538
  • 11
  • 59
  • 96
0

Is the column Block in the database declared with the proper collation? Introduce the Turkish I issue. Note that the collation must be declared even for Unicode Nchars.

Remus Rusanu
  • 288,378
  • 40
  • 442
  • 569