-
Notifications
You must be signed in to change notification settings - Fork 286
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
InvalidOperationException(SqlException) on SqlBulkCopy #221
Comments
The word |
I'm looking towards a potential fix in NetCore here: SqlClient/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlBulkCopy.cs Line 535 in e1e3be4
and in NetFx here: SqlClient/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlBulkCopy.cs Line 630 in e1e3be4
to change to: updateBulkCommandText.AppendFormat("insert bulk {0} (", "[" + this.DestinationTableName + "]"); Somewhere on these lines. I'll give it a try and create a PR soon. |
If you want to escape it you probably want to use make |
@hlkitty Attached is the nupkg with the fix from PR #246. Please verify if the fix works for you. |
@v-kaywon I download this and replaced with the nupkg,and it seems to be working well |
when I insert some rows into table named "User" with SqlBulkCopy,I got a Exception
and the inner exception is
The text was updated successfully, but these errors were encountered: