I am testing an upgrade of our databases to SQL Server 2005 (from 2000), and I apologize if this question seems a little simplistic. I have a view that is based on a table where the primary key is Doctor #, and it even has an ORDER BY to sort by Doctor #. This view has ALWAYS (in SQL 2000) returned the data in the proper sort order, but once I upgraded a copy of the database to SQL Server 2005 the view resultset is no longer in Doctor # order! When I connect to the production SQL Server 2000 database from the 2005 Management Studio and query the table, it returns the properly sorted results! To further confuse things, when I right click on a view (in Management Studio) and select 'Open View', I get the unsorted results, but if I select 'Modify' from the context menu and then, while in edit mode, execute the query for the view - it IS sorted properly! This behavior occurs on various different views.
I am probably missing something simple here, but I just can't seem to get a handle on what it is.

View sort order problems
jyothsna
ButlerDJ
Anonymous2342323432
Queen of the desert
music_at_ulan
Mr. Bungle
Lucianamaría
tcheck
"To further confuse things, when I right click on a view (in Management Studio) and select 'Open View', I get the unsorted results, but if I select 'Modify' from the context menu and then, while in edit mode, execute the query for the view - it IS sorted properly!"
I appreciate you trying to help, though, obviously with some irritation it seems, but I think you are still missing the point of the question. Thanks anyway.