PC Review


Reply
Thread Tools Rate Thread

Re: Sort Oder not as I planned

 
 
Sylvain Lafontaine
Guest
Posts: n/a
 
      24th Nov 2008
There are no sorting order in Views because they are interpreted like
tables. Under some circonstances, adding a TOP 100 PERCENT will give you
the impression that this work but as you might now see, this doesn't work
100% of the time on all platforms/applications.

Use a Select statement to query your view and add your Order By to it.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)


"AkAlan via AccessMonster.com" <u18147@uwe> wrote in message
news:8daee91c7a5b5@uwe...
>I have a view created with a sort order on the SiteName field but it sorts
>in
> the SiteID field. Am I missing simething here?
>
> SELECT DISTINCT TOP 100 PERCENT dbo.QcCar.SiteID, dbo.QcSites.SiteName
> FROM dbo.QcSites RIGHT OUTER JOIN
> dbo.QcCar ON dbo.QcSites.QcSitesId =
> dbo.QcCar.SiteID
> WHERE (dbo.QcCar.QcFinalReviewDate IS NULL)
> ORDER BY dbo.QcSites.SiteName
>
> --
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/For...erver/200811/1
>



 
Reply With Quote
 
 
 
 
Bob Snedden
Guest
Posts: n/a
 
      10th Dec 2008
Dear Sylvain,

I have an important customer who has upgraded to SQL Server 2005 with 9 ADP
databases I have designed for them.

This upgrade was done for replication purposes for other SQL Server
applications not my databases.

From you reply to this post - Am I now having to update all comboboxes to
use store procedures or to use SELECT statements from Views in order to get
sorted lists?

This looks like a mountain of work but I assume because 2005 treats Views as
Tables unlike 200.
--
Bob Snedden, MCT, MCSD.Net


"Sylvain Lafontaine" wrote:

> There are no sorting order in Views because they are interpreted like
> tables. Under some circonstances, adding a TOP 100 PERCENT will give you
> the impression that this work but as you might now see, this doesn't work
> 100% of the time on all platforms/applications.
>
> Use a Select statement to query your view and add your Order By to it.
>
> --
> Sylvain Lafontaine, ing.
> MVP - Technologies Virtual-PC
> E-mail: sylvain aei ca (fill the blanks, no spam please)
>
>
> "AkAlan via AccessMonster.com" <u18147@uwe> wrote in message
> news:8daee91c7a5b5@uwe...
> >I have a view created with a sort order on the SiteName field but it sorts
> >in
> > the SiteID field. Am I missing simething here?
> >
> > SELECT DISTINCT TOP 100 PERCENT dbo.QcCar.SiteID, dbo.QcSites.SiteName
> > FROM dbo.QcSites RIGHT OUTER JOIN
> > dbo.QcCar ON dbo.QcSites.QcSitesId =
> > dbo.QcCar.SiteID
> > WHERE (dbo.QcCar.QcFinalReviewDate IS NULL)
> > ORDER BY dbo.QcSites.SiteName
> >
> > --
> > Message posted via AccessMonster.com
> > http://www.accessmonster.com/Uwe/For...erver/200811/1
> >

>
>
>

 
Reply With Quote
 
 
 
 
Sylvain Lafontaine
Guest
Posts: n/a
 
      10th Dec 2008
You can try replacing the TOP 100% in the Views with something like TOP
2000000000.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)


"Bob Snedden" <(E-Mail Removed)> wrote in message
news:06DE3D78-CE04-4FBA-A180-(E-Mail Removed)...
> Dear Sylvain,
>
> I have an important customer who has upgraded to SQL Server 2005 with 9
> ADP
> databases I have designed for them.
>
> This upgrade was done for replication purposes for other SQL Server
> applications not my databases.
>
> From you reply to this post - Am I now having to update all comboboxes to
> use store procedures or to use SELECT statements from Views in order to
> get
> sorted lists?
>
> This looks like a mountain of work but I assume because 2005 treats Views
> as
> Tables unlike 200.
> --
> Bob Snedden, MCT, MCSD.Net
>
>
> "Sylvain Lafontaine" wrote:
>
>> There are no sorting order in Views because they are interpreted like
>> tables. Under some circonstances, adding a TOP 100 PERCENT will give you
>> the impression that this work but as you might now see, this doesn't work
>> 100% of the time on all platforms/applications.
>>
>> Use a Select statement to query your view and add your Order By to it.
>>
>> --
>> Sylvain Lafontaine, ing.
>> MVP - Technologies Virtual-PC
>> E-mail: sylvain aei ca (fill the blanks, no spam please)
>>
>>
>> "AkAlan via AccessMonster.com" <u18147@uwe> wrote in message
>> news:8daee91c7a5b5@uwe...
>> >I have a view created with a sort order on the SiteName field but it
>> >sorts
>> >in
>> > the SiteID field. Am I missing simething here?
>> >
>> > SELECT DISTINCT TOP 100 PERCENT dbo.QcCar.SiteID, dbo.QcSites.SiteName
>> > FROM dbo.QcSites RIGHT OUTER JOIN
>> > dbo.QcCar ON dbo.QcSites.QcSitesId =
>> > dbo.QcCar.SiteID
>> > WHERE (dbo.QcCar.QcFinalReviewDate IS NULL)
>> > ORDER BY dbo.QcSites.SiteName
>> >
>> > --
>> > Message posted via AccessMonster.com
>> > http://www.accessmonster.com/Uwe/For...erver/200811/1
>> >

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Sort Oder not as I planned asus Microsoft Access ADP SQL Server 0 25th Nov 2008 12:51 PM
setting oder of the NICs Mark Lafferty Windows XP Hardware 2 29th Apr 2005 03:02 PM
Jpeg oder Gif als Desktophintergrund? Tobi Windows XP Help 2 5th Jan 2004 12:53 PM
ist hier alles englisch oder gibts hier auch was in deutsch??? Aschenbrenner Harald Microsoft Outlook Discussion 1 14th Nov 2003 09:42 PM
Changing the oder of the open applications in the task bar sparker@oneok.com Windows XP General 1 11th Nov 2003 03:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:25 AM.