fix results matching of SELECT count(*) for MSSQL