2

Is there a way to stop OracleBulkCopy to ignore/disable primary key (unique-constraints on not-null columns). At the moment when inserting a batch which contains duplicated rows, the destination table becomes problematic that is causing the indices to go in unusable state.

Therefore, OracleBulkCopy.WriteToServer will refuse to run again if the index starts in an UNUSABLE state.

Using bulkCopy As OracleBulkCopy = New OracleBulkCopy(conBsdOracle, OracleBulkCopyOptions.Default
End Using
alwaysVBNET
  • 3,150
  • 8
  • 32
  • 65

0 Answers0