Add changes for mssql 2012