Topic: SQL server 2012 and sort order problem
I have just noticed some odd behaviour with our new installation on SQL Server 2012 when running xml reports (attached). This is a report I have used many many times in the past without problems.
The report simply creates a list of unique species recorded at a site, or its subsites (via a right click on the site in the locations hierarchy, but I also have a run-menu version of it). I don't think there is anything in it which is non-standard for Recorder, so it should run on anyone's system, if you are interested, feel free. I should warn however that I wrote it several years ago and there have been a variety of changes in the way species names can be reported since then, so it may not display the most up to date version of the names (it might but I don't have time to check now).
However, the report is intended to be ordered, first by TAXON_GROUP.SORT_ORDER and then by ACTUAL_NAME taken from INDEX_TAXON_NAME, where TAXON_LIST_ITEM_KEY is the RECOMMENDED_TAXON_LIST_ITEM_KEY of the taxon actually recorded. Consequently it has always returned a species list with e.g. all the Flowering plants together arranged alphabetically by scientific name. It still does this on our old installation (under SQL server 2000).
On our new server though, the report returns a list which has no discernible sort order.
It looks as if SQL 2012 does not interpret an ORDER BY clause in the same way as 2000.
This has me really worried since I am currently spending a lot of time trying to get the 2012 version working properly, with a view to rolling it out to all staff as soon as possible.
Any thoughts?
Wildlife Sites Officer
Wiltshire & Swindon Biological Records Centre