in reply to Sybase::BCP & iowait

Foxcub,

I would try opening and closing the database handle only once. In other words, open and close it somewhere outside of the bcpInsert subroutine.

Also, the code that you posted probably isn't the culprit. Please post code for the following subroutines...

bcp_init(); bcp_meminit(); bcp_sendrow(); bcp_batch bcp_done;
I think your problem may lie somewhere in that list


Kristofer Hoch