Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SqlBulkCopy: Add hooks to enable retry strategies on batches #38

Open
jamescrowley opened this issue Mar 6, 2018 · 1 comment
Open
Labels
💡 Enhancement Issues that are feature requests for the drivers we maintain.

Comments

@jamescrowley
Copy link

If SqlBulkCopy encounters any kind of exception as it inserts rows into a table, it fails the entire job.

In some scenarios, certain errors might be appropriate to retry - for instance, a deadlock or timeout. While this might be unlikely when doing bulk inserts to a staging table, it is much more likely if the table is also shared by a web application, for instance.

For this reason, until now we've instead used Table Valued Parameters.

It would be helpful though if SqlBulkCopy gave us a mechanism to apply a retry strategy as appropriate.

If this isn't the appropriate place to post suggestions like this, let me know. If there was interest in the above, I would happily investigate the feasibility of this further.

@divega
Copy link

divega commented May 16, 2019

As recently announced in the .NET Blog, focus on new SqlClient features an improvements is moving to the new Microsoft.Data.SqlClient package. For this reason, we are moving this issue to the new repo at https://github.com/dotnet/SqlClient. We will still use https://github.com/dotnet/corefx to track issues on other providers like System.Data.Odbc and System.Data.OleDB, and general ADO.NET and .NET data access issues.

@divega divega transferred this issue from dotnet/corefx May 16, 2019
@David-Engel David-Engel added the 💡 Enhancement Issues that are feature requests for the drivers we maintain. label May 20, 2019
@cheenamalhotra cheenamalhotra added this to the Future milestone Oct 7, 2019
@cheenamalhotra cheenamalhotra removed this from the Future milestone Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 Enhancement Issues that are feature requests for the drivers we maintain.
Projects
None yet
Development

No branches or pull requests

4 participants