 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Luciano RM Guest
|
Posted: Wed Dec 29, 2004 12:31 pm Post subject: SimpleDataSet - Order By 1 Desc |
|
|
Hi,
I´m using Delphi 7 with the last service pack, MS-SQL 2000 and
SimpleDataSet.
I´m tring to get Descending order on the following field:
Select SubString(Observacao, 0, 150) as Observacao
From Table
Order By 1 Desc
But it gets only Ascending order.
Why does it happens?
With regards.
Luciano RM
|
|
| Back to top |
|
 |
Bill Todd Guest
|
Posted: Wed Dec 29, 2004 2:01 pm Post subject: Re: SimpleDataSet - Order By 1 Desc |
|
|
First, replace the SimpleDataSet with separate components. Then, set
the DataSetProvider.Options poRetainServerOrder to true.
--
Bill Todd (TeamB)
TeamB cannot answer questions received via email
|
|
| Back to top |
|
 |
Luciano RM Guest
|
Posted: Thu Dec 30, 2004 6:21 pm Post subject: Re: SimpleDataSet - Order By 1 Desc |
|
|
Bill Todd escreveu:
| Quote: | First, replace the SimpleDataSet with separate components. Then, set
the DataSetProvider.Options poRetainServerOrder to true.
Ok, thanks. |
Luciano RM
|
|
| 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
|
|