Can any one tell about
Using same SqlCommand object to execute multiple commands in .net applicaton.
Situation:
I have a Truncate table command which is executed first.
then I will perform SqlBulkcopy operations
then i want the same command object to execute another stored procedure which will
perform some updation or moving the data to different tables.
I dont want to create a new Command object.
One more thing all the three operations are in a transaction.
Thanks in advance.
You don’t have to create a new object. Just specify a new
with the neccesary parameters before executing each command.