How to do bulk inserts from my IEnumrable<T> data to my db? RRS feed

  • Question

  • Hi Guys,

    I have SQL connection and IEnumerable<T> data

    And I want to Implement function which reads Ienumrable data and does bulkcopy to my backend 

    conn.BulkCopy(tableName, data);

    TableName is a table which will be created in my db. Can someone help me doing this?


    Saturday, March 2, 2013 1:24 AM


  • A nice article on BulkCopy

    Mark Answered, if it solves your question and Vote if you found it helpful.
    Rohit Arora

    • Proposed as answer by Mike Feng Monday, March 4, 2013 3:34 PM
    • Marked as answer by Mike Feng Wednesday, March 13, 2013 4:55 PM
    Saturday, March 2, 2013 6:17 AM