strange behavior of TAdodataSet.IndexFieldNames
From: Marek (mark*NOSPAM*_at_tradition.ca)
Date: 10/31/03
- Next message: Remo Candeli: "Re: Tables Lock and OleException error"
- Previous message: Brian Bushay TeamB: "Re: who connect to Access"
- Next in thread: Andy Mackie: "Re: strange behavior of TAdodataSet.IndexFieldNames"
- Reply: Andy Mackie: "Re: strange behavior of TAdodataSet.IndexFieldNames"
- Reply: Kevin Frevert: "Re: strange behavior of TAdodataSet.IndexFieldNames"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 31 Oct 2003 00:43:17 -0600
Using TADODataSet I create a recordset by executing the following SQL
statement (against MS SQL 2000):
select * from MyTable order by Name
my t able has only 4 rows; right after this SQL gets executed, the sequence
of rows (I use DBGrid to see this)
is like this one:
BATCHES
INGR--Y
INGR-77
INGR01
and this is correct [alphabetical] order ( dash chcarcter has lower ASCII
code than 0)
But if I perfrom the following code: TAdodataSet.IndexFieldNames := 'Name
ASC'
the sequence in the DbGrid changes(!), and it looks like this:
BATCHES
INGR01
INGR-77
INGR--Y
is this an error in MS-ADO/MS-OLEDB/Borland-ADOExpress
or perhaps I am not aware about something ?
Thank you very much,
marek
- Next message: Remo Candeli: "Re: Tables Lock and OleException error"
- Previous message: Brian Bushay TeamB: "Re: who connect to Access"
- Next in thread: Andy Mackie: "Re: strange behavior of TAdodataSet.IndexFieldNames"
- Reply: Andy Mackie: "Re: strange behavior of TAdodataSet.IndexFieldNames"
- Reply: Kevin Frevert: "Re: strange behavior of TAdodataSet.IndexFieldNames"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|