mssql connect bugfix