Add CDatabase::noOdbcDialog option to the dwOptions parameter in OpenEx call.