Hi i am using MSSQLSERVER 2000,2005,2008 and 2008R2
i have created SP on 2000 and wanted to run it on higher versions or vise versa say suppose i have created SP on 2008 (i mean SP created on Higher version) and wanted to run it on the lower versions like 2000 or 2005 what things i need to do so that the same code inside the SP or SP will be used over the different different Versions ?
can anybody please help me out on this ….
I assume that by “created SP on 2008 and wanted to run it on the lower versions” you mean by coping the procedure’s code on 2008 and recreating it on 2000.
If so, it will depend on the T-SQL code you have inside your procedure. If you have a proc on 2008 that does everything that 2000 does, it will work on both versions. But if you have a procedure on 2008 that runs a CTE for example, it wont work on 2000 because CTEs are not supported on that version.
this link will download a document that shows the differences