I am trying to write some code that I hope will run on SQL Server 2000, 2005, 2008 and beyond. I currently have 2008 R2 on my machine but I would also like to test it will work on older versions of SQL Server but without installing them.
Is this possible or is it just a case of remembering to take out WITH clauses when referencing indexes in the FROM statement and so on?