Hi all,I have run into what I think is a bug in SQL Server Express version 2005.90.3042.0To reproduce it, create a simple table as described below:CREATE TABLE [dbo].[test]( [priority] [tinyint] NOT NULL, CONSTRAINT [PK_test] PRIMARY KEY CLUSTERED ( [priority] ASC)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]) ON [PRIMARY]
OK, a simple table with one tinyint column. It doesn't actually matter if you create the primary key or not.Then I populated the table with 10 entries, with the numbers 1 - 10 in the priority column.So the query SELECT *FROM test
producespriority12345678910Now I created a view using the following SQLCREATE VIEW [dbo].[showtestd]ASSELECT TOP (100) PERCENT dbo.test.*FROM dbo.testORDER BY priority DESC
If then run the followingSELECT *FROM showtestd
I would expect the see the result ordered by descending index. However, the DESC in the view is ignored, it comes out sorted ascending, So I still see 1-10.So I am hoping someone can tell me if this is a real bug, or if I misunderstand views.