-
Notifications
You must be signed in to change notification settings - Fork 299
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 - Improve granularity of exceptions due to data mismatches. #546
Comments
Hi @Korporal We have addressed your concern in PR #437 and v2.0.0-preview2 contains this enhancement. |
Closing due to inactivity and support provided with recent driver updates. |
@cheenamalhotra Thanks for the effort put into this, very helpful change and I look forward to leveraging very soon! |
@cheenamalhotra The app that was experiencing the original problem is built on .Net Framework 4.5.2 is this something we'll see as an update to .Net Framework or is it all .Net Core these days? |
Microsoft.Data.SqlClient supports .NET Framework 4.6+ and the above PR also applies to the same. |
Is your feature request related to a problem? Please describe.
When we call SqlBulkCopy.WriteToServer and there are rows that lead to insert exceptions (data lengths etc) the exception we see contains no information about the row number of the column.
Describe the solution you'd like
Report the row number and the column name in addition to the details of the mismatch.
Describe alternatives you've considered
Writing our own pre-validator.
Additional context
In one case we were attempting to insert 1,700,000 rows and we know that some column in some row was a problem but could not pin it down.
The text was updated successfully, but these errors were encountered: