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

speed test glasgow

at first test upload was 20mbps, something broke it now it gives  0.07 but I am happy with 129 download and price is 16 £