Sunday, October 05, 2008

The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.

bişeylerle uğraşırken sitelerimden birinde bunu gördüm admin panelinde ulan dedim durup durduk yere noluo. sonradan aklıma geldi ben bu sitenin databaseinde bi field ı ntext yapmıştım meğer ondan dolayı selectdeki order arıza eder olmuş.

çözüm basit order by fieldismi olan yeri order by cast(fielismi as varchar(8000)) gibi bişey yapıosunuz. zaten ilk harfe göre sıralama yapmasını istiodum bu yetioda artıo bile.

1 comment:

Baris EKICI said...

Gayet guzel ve basarili bir oneri, tesekkurler

C# scan cs file and find variables values and names

using Microsoft . CodeAnalysis ; using Microsoft . CodeAnalysis . CSharp ; using Microsoft . CodeAnalysis . CSharp . Syntax ; using Xunit . ...