initial fix for MSSQL