update to run on mssql