The IIF statement introduced recently in the code errors SQL Server 2008 and 2008R2 due to the IIF statement being introduced in SQL Server 2012. Now I know a lot of us including myself would only ...