I am using the c# and SqlBulkCopy to insert some records at once to my db. the records list is small up to a 100-200 records.
here is my code:
using (SqlBulkCopy bulkCopy = new SqlBulkCopy(connectionString))
{
bulkCopy.DestinationTableName = destinationTableName;
bulkCopy.WriteToServer(reader);
}
I have a time out exception from time to time and I would like to get the raw sql query in order to investigate some more. can anybody tell me how do I pull that out of the SqlBulkCopy object?