BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to use COLLATE to SORT ADO table by international sortin

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Pavel Polesny
Guest





PostPosted: Thu Mar 04, 2004 11:45 am    Post subject: How to use COLLATE to SORT ADO table by international sortin Reply with quote



I ned to sort tables by international sorting rules, but Delphi ADO does
seem to accept COLLATE SQL statement...

Can anybody help?

Pavel
Back to top
Viatcheslav V. Vassiliev
Guest





PostPosted: Thu Mar 04, 2004 1:02 pm    Post subject: Re: How to use COLLATE to SORT ADO table by international so Reply with quote



ADO does not accept SQL at all and pass command text to OLEDB provider. Look
documentation for your DBMS for SQL syntax - it is different for different
OLEDB providers.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Pavel Polesny" <arnie (AT) atlas (DOT) cz> ???????/???????? ? ???????? ?????????:
news:opr4b5lyzgibbtzu (AT) localhost (DOT) ..
I ned to sort tables by international sorting rules, but Delphi ADO does
seem to accept COLLATE SQL statement...

Can anybody help?

Pavel


Back to top
Pavel
Guest





PostPosted: Thu Mar 04, 2004 1:08 pm    Post subject: Re: How to use COLLATE to SORT ADO table by international so Reply with quote



Yes, of cource, I use MS Jet 4.0 OLEDB Provider. It's pretty difficult to
find provider's exact SQL specification, so instead of experimenting I tried
to find someone who uses it already...

P.



"Viatcheslav V. Vassiliev" <support (AT) oledbdirect (DOT) com> pí¹e v diskusním
pøíspìvku news:404728fc$1 (AT) newsgroups (DOT) borland.com...
Quote:
ADO does not accept SQL at all and pass command text to OLEDB provider.
Look
documentation for your DBMS for SQL syntax - it is different for different
OLEDB providers.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Pavel Polesny" <arnie (AT) atlas (DOT) cz> ???????/???????? ? ???????? ?????????:
news:opr4b5lyzgibbtzu (AT) localhost (DOT) ..
I ned to sort tables by international sorting rules, but Delphi ADO does
seem to accept COLLATE SQL statement...

Can anybody help?

Pavel





Back to top
Viatcheslav V. Vassiliev
Guest





PostPosted: Thu Mar 04, 2004 4:39 pm    Post subject: Re: How to use COLLATE to SORT ADO table by international so Reply with quote

If I am not wrong, Jet 4.0 (Access 2000+) stores all strings as Unicode and
you can not specify collation order. For Jet SQL syntax if you have MS
Office search for jetsql40.chm on your hard drive.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Pavel" <registrace (AT) pc-slovniky (DOT) cz> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:40472a49 (AT) newsgroups (DOT) borland.com...
Quote:
Yes, of cource, I use MS Jet 4.0 OLEDB Provider. It's pretty difficult to
find provider's exact SQL specification, so instead of experimenting I
tried
to find someone who uses it already...

P.



"Viatcheslav V. Vassiliev" <support (AT) oledbdirect (DOT) com> pí¹e v diskusním
pøíspìvku news:404728fc$1 (AT) newsgroups (DOT) borland.com...
ADO does not accept SQL at all and pass command text to OLEDB provider.
Look
documentation for your DBMS for SQL syntax - it is different for
different
OLEDB providers.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Pavel Polesny" <arnie (AT) atlas (DOT) cz> ???????/???????? ? ???????? ?????????:
news:opr4b5lyzgibbtzu (AT) localhost (DOT) ..
I ned to sort tables by international sorting rules, but Delphi ADO does
seem to accept COLLATE SQL statement...

Can anybody help?

Pavel







Back to top
Pavel
Guest





PostPosted: Thu Mar 04, 2004 5:24 pm    Post subject: Re: How to use COLLATE to SORT ADO table by international so Reply with quote

It seems to be that bad, that Jet 4.0 does not support this basic function,
I guess. Very "funny", because I develop foreign dictionaries and
international sorting is necessary... What would you say if you were
looking for a word ni russian cyrilic and it was sorted by czech alphabet
case insensitive :-)

I must look after some better supposted provider... :-/

Pavel

P.S.: Ooops, the help file was not found on my machine 8-O



"Viatcheslav V. Vassiliev" <support (AT) oledbdirect (DOT) com> pí¹e v diskusním
pøíspìvku news:40475bab (AT) newsgroups (DOT) borland.com...
Quote:
If I am not wrong, Jet 4.0 (Access 2000+) stores all strings as Unicode
and
you can not specify collation order. For Jet SQL syntax if you have MS
Office search for jetsql40.chm on your hard drive.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Pavel" <registrace (AT) pc-slovniky (DOT) cz> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:40472a49 (AT) newsgroups (DOT) borland.com...
Yes, of cource, I use MS Jet 4.0 OLEDB Provider. It's pretty difficult
to
find provider's exact SQL specification, so instead of experimenting I
tried
to find someone who uses it already...

P.



"Viatcheslav V. Vassiliev" <support (AT) oledbdirect (DOT) com> pí¹e v diskusním
pøíspìvku news:404728fc$1 (AT) newsgroups (DOT) borland.com...
ADO does not accept SQL at all and pass command text to OLEDB
provider.
Look
documentation for your DBMS for SQL syntax - it is different for
different
OLEDB providers.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Pavel Polesny" <arnie (AT) atlas (DOT) cz> ???????/???????? ? ????????
?????????:
news:opr4b5lyzgibbtzu (AT) localhost (DOT) ..
I ned to sort tables by international sorting rules, but Delphi ADO
does
seem to accept COLLATE SQL statement...

Can anybody help?

Pavel









Back to top
Pavel
Guest





PostPosted: Fri Mar 05, 2004 12:50 pm    Post subject: Re: How to use COLLATE to SORT ADO table by international so Reply with quote

Yes, I know, byt it is for connection, not for table (I have more tables for
different languages - that I would place into the different databases
instead), but the collation order is CI_AI - case insensitive and accent
insensitive... That means no order for many words that differ by the accende
(or uppercase) characters.

And, in addition, are you sure that you can chang the default locale (if
it's no readonly) without compacting database?

Pavel



"Brian Bushay TeamB" <BBushay (AT) Nmpls (DOT) com> píse v diskusním príspevku
news:dj1g401u326ing2eh93mkbbetmn12rabup (AT) 4ax (DOT) com...
Quote:

It seems to be that bad, that Jet 4.0 does not support this basic
function,
I guess. Very "funny", because I develop foreign dictionaries and
international sorting is necessary... What would you say if you were
looking for a word ni russian cyrilic and it was sorted by czech alphabet
case insensitive :-)

for JET the Locale Identifier property in the connection string determines
collation order
--
Brian Bushay (TeamB)
[email]Bbushay (AT) NMPLS (DOT) com[/email]



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.