fix the mssql connection bug.