D
dan
within a loop i am building a sql insert statement to run against my
(programatically created) mdb. it works but it seems unreasonably SLOW!
Sorry, dont have the code here but the jist is very standard (I
think!);
e.g:
# get connection
loop
{
build sql (35 fields to insert)
call ExecuteNonQuery on command obj associated to connection.
}
# close conn.
the insert is called about 500,000 times and that is proving very
time-consuming (e.g. about 15 minutes!!!!)
no exception is thrown and all records get inserted. i cant see any
prob save the dire performance. am i expecting too much or is there a
better perfoming solution (and i wont laugh if someone replie with
'SqlServer' or 'Oracle' as a solution... ;-)
cheers. dan
(programatically created) mdb. it works but it seems unreasonably SLOW!
Sorry, dont have the code here but the jist is very standard (I
think!);
e.g:
# get connection
loop
{
build sql (35 fields to insert)
call ExecuteNonQuery on command obj associated to connection.
}
# close conn.
the insert is called about 500,000 times and that is proving very
time-consuming (e.g. about 15 minutes!!!!)
no exception is thrown and all records get inserted. i cant see any
prob save the dire performance. am i expecting too much or is there a
better perfoming solution (and i wont laugh if someone replie with
'SqlServer' or 'Oracle' as a solution... ;-)
cheers. dan