SQL adaptation guide for SQL SERVER 2005, 2008, 2012, 2014, 2016