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 

SimpleDataSet - Order By 1 Desc

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Luciano RM
Guest





PostPosted: Wed Dec 29, 2004 12:31 pm    Post subject: SimpleDataSet - Order By 1 Desc Reply with quote



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





PostPosted: Wed Dec 29, 2004 2:01 pm    Post subject: Re: SimpleDataSet - Order By 1 Desc Reply with quote



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





PostPosted: Thu Dec 30, 2004 6:21 pm    Post subject: Re: SimpleDataSet - Order By 1 Desc Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) 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.