Updated to support MSSQL2008 systems