Do i need to ensure that each batch is completely full? ie if i had a datatable with 12028 rows, could i just use a batch size of 10k and it would automatically create 2 batches, 1 with 10k in and 1 with 2028 in?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
According to MSDN: SqlBulkCopy.BatchSize —
Based on this information, I am inclined to believe that setting batch size to 10k rows and you provide 12k+, multiple batches will be created.