Skip to content

Latest commit

 

History

History
7 lines (7 loc) · 355 Bytes

File metadata and controls

7 lines (7 loc) · 355 Bytes

SqlBulkCopy-streaming-C#-sample - .NET 6 Console App

Sync 2 sql tables using SqlBulkCopy data streaming:

  • this sample code sets up 2 tables, only run this method in the 1st run, then uncomment it
  • populates the source table with data
  • opens a DataReader
  • sets EnableStreaming = true
  • SqlBulkCopies the source data to the target table via streaming