fixing MSSQL errors ..not a fully 100% adapter