Hi,
It is a question for SQL Server 2008 and .NET code.
I am wondering what you think in terms of performances, design between these two options to insert a lot of data (>250,000 rows, 5 “normal” columns) into a table using a transaction.
- a. Insert Into statement surrounded by transact statement in the c# code.
Or
- b. Insert Into statement into a stored procedure executed row-by-row by a while in the c# code surrounded by a transact statement.
Or
- c. Serialize my object in c# and send the xml to a stored procedure. The stored procedure is a while what read the xml. The while is surrounded by a transact statement.
Also, the network between the client and the server is not very good...
Thanks in advance.