I am not looking for help with the actual code of my stored procedure (yet anyway), but a client sent me a copy of his SQL Server 2000 database stating that a particular pro
Views with order by won't be ordered in SQl Server 2008, see here: Create a sorted view in SQL Server 2005 and SQL Server 2008
When you say incorrect results, what do you mean? The Language of the SQl Server installation can also be factor if you pass in dates as strings and you are not using ISO/safe formats
Could also be the ANSI settings from the connection coming in at your client's DB
perhaps they have ANSI_NULLS OFF instead of ON
There are so many things that could cause this problem including (but not limited to) collation and system settings. If we saw the SP we might be able to spot the culprit. In addition to changes in deployments there are differences between versions see
http://msdn.microsoft.com/en-us/library/ms143179(v=sql.100).aspx
and
http://msdn.microsoft.com/en-us/library/ms143179.aspx