My Task Background :
- I have list of data items and have to calculate/aggregate details about each data item and populate that to SQLServer database.
- I can do 1 by 1 insert [Traditional method]
But, the application needs to perform good.
Is it possible to aggregate the data in a 2d array and dump into database @ once ?
' Populate this and insert it to database.
Private data(100, 100) As Object
So, how to do that ?
Also, is it possible to use dataset in some way ?
I did it :
by looping over to form my query, in the form described here :
http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/