M
Mircea Pleteriu
Hi all,
I have to insert to my database's table around 200 items. Actualy, for each
new item that must be inserted an SQL stored procedure is invoked.
The stored procedure does some tasks and then inserts the item into the
table.
The items which must be inserted are passed to my code through a DataTable
object.
So, each row in this object must be inserted into the database.
To accomplish this task, the inserting of all rows, at the moment, I'm using
a SQLDataAdapter object with the insert command pointing to the SQL stored
procedure and invoking the Update() method.
It works fine, the items are all inserted successfully.
The big problem is that it takes around 2.5 - 3 seconds to insert 200 items.
Do you have any idea to make it faster?
Thanks,
I have to insert to my database's table around 200 items. Actualy, for each
new item that must be inserted an SQL stored procedure is invoked.
The stored procedure does some tasks and then inserts the item into the
table.
The items which must be inserted are passed to my code through a DataTable
object.
So, each row in this object must be inserted into the database.
To accomplish this task, the inserting of all rows, at the moment, I'm using
a SQLDataAdapter object with the insert command pointing to the SQL stored
procedure and invoking the Update() method.
It works fine, the items are all inserted successfully.
The big problem is that it takes around 2.5 - 3 seconds to insert 200 items.
Do you have any idea to make it faster?
Thanks,