addjust MAM to work with MSSQL 2012