5
I’m using in my class project SqlBulkCopy
to mass input data. Everything has worked perfectly, but in recommending this to my co-workers, despite proving the efficiency, questioned about the functioning.
In my research, I was able to verify that the SqlBulkCopy
works similar to the bcp utility. So I went for information, but I couldn’t find anything very detailed.
To better understand, I started the SQL Server Profiler
to try to capture the generated querys, but to my surprise, apparently the data that was entered were not sent via SQL command.
Now I’m even more confused. The SqlBulkCopy
works with some kind of service provided by bcp utility, sending it the data to be entered? How is this mass insertion work done? How can this be so fast?
While entering the data, is there any risk of the tables getting stuck? And if there is an error during the process, how does it behave?