 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Pavel Polesny Guest
|
Posted: Thu Mar 04, 2004 11:45 am Post subject: How to use COLLATE to SORT ADO table by international sortin |
|
|
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
|
Posted: Thu Mar 04, 2004 1:02 pm Post subject: Re: How to use COLLATE to SORT ADO table by international so |
|
|
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
|
Posted: Thu Mar 04, 2004 1:08 pm Post subject: Re: How to use COLLATE to SORT ADO table by international so |
|
|
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
|
Posted: Thu Mar 04, 2004 4:39 pm Post subject: Re: How to use COLLATE to SORT ADO table by international so |
|
|
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
|
Posted: Thu Mar 04, 2004 5:24 pm Post subject: Re: How to use COLLATE to SORT ADO table by international so |
|
|
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
|
Posted: Fri Mar 05, 2004 12:50 pm Post subject: Re: How to use COLLATE to SORT ADO table by international so |
|
|
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 |
|
 |
|
|
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
|
|