NOBUG mssql driver, fix some wrong uses recently introduced