473,399 Members | 3,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

OleDB : ORDER BY 's order.

com.CommandText="SELECT title FROM books ORDER BY title";
com.ExecuteReader();
......

The titles contain Alphabets, Hangeul(the Korean alphabets) and
numbers. The ORDER BY sorts titles in number-Hangeul-Alphabets order.
(Maybe this is because the system locale is Korean. I have ascertained
that when the Regional Options' Standard and formats are set to Korean,
the items in Windows Explorer are sorted in number-Hangeul-Alphabets
order and when English, number-Alphabets-Hangeul order)

Anyways, I want the ORDER BY always sort the title in
number-Alphabets-Hangeul order no matter what the system locale is. Is
there any way to do this?

If you are sure that there is no way to control the ORDER BY, just
please tell me that. Then I could stop wasting my time on this.

Thank you.

Aug 3 '06 #1
2 2533
This post would probably be better suited in the appropriate database topic
area.

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung

"Sin Jeong-hun" <ty*******@gmail.comwrote in message
news:11*********************@75g2000cwc.googlegrou ps.com...
com.CommandText="SELECT title FROM books ORDER BY title";
com.ExecuteReader();
.....

The titles contain Alphabets, Hangeul(the Korean alphabets) and
numbers. The ORDER BY sorts titles in number-Hangeul-Alphabets order.
(Maybe this is because the system locale is Korean. I have ascertained
that when the Regional Options' Standard and formats are set to Korean,
the items in Windows Explorer are sorted in number-Hangeul-Alphabets
order and when English, number-Alphabets-Hangeul order)

Anyways, I want the ORDER BY always sort the title in
number-Alphabets-Hangeul order no matter what the system locale is. Is
there any way to do this?

If you are sure that there is no way to control the ORDER BY, just
please tell me that. Then I could stop wasting my time on this.

Thank you.

Aug 3 '06 #2
Sin Jeong-hun wrote:
com.CommandText="SELECT title FROM books ORDER BY title";
com.ExecuteReader();
.....

The titles contain Alphabets, Hangeul(the Korean alphabets) and
numbers. The ORDER BY sorts titles in number-Hangeul-Alphabets order.
(Maybe this is because the system locale is Korean. I have ascertained
that when the Regional Options' Standard and formats are set to Korean,
the items in Windows Explorer are sorted in number-Hangeul-Alphabets
order and when English, number-Alphabets-Hangeul order)

Anyways, I want the ORDER BY always sort the title in
number-Alphabets-Hangeul order no matter what the system locale is. Is
there any way to do this?

If you are sure that there is no way to control the ORDER BY, just
please tell me that. Then I could stop wasting my time on this.

Thank you.
As G.Y. said, it would be better in the relevant db group but...
You need to look at collations in the order by clause ie order by title
collate <number-Alphabets-Hangeul collation name>

in MS Sql Server it works as:
select * from fubar order by blah collate Albanian_BIN2

JB
Aug 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: | last post by:
Hi, I was performing SQL UPDATE queries and I notice that they SUCCEED on the ExecuteNonQuery() call with NO exceptions raised BUT they fail at the Database. They say they succeed in the code...
2
by: Joe | last post by:
Hi All, I am new to using the Access DB and I need some help if someone is able to give it to me. What I want to do is get the names of the columns of certain tables. Not the data in the table...
4
by: Robert Hanson | last post by:
Hi All, I am trying to add a record to a datatable that is connected to an Access database. I had no trouble with string and date fields, but for this record, I have two Long Integer field...
1
by: Brian Henry | last post by:
I have an access database, and one of the fields in the table I am inserting into has a date/time data type. What is the correct OleDb data type to insert the date and time that it is at the moment...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.