SqlBulkCopy unusual TimeOut Error

Posted by ChrisHDog on Stack Overflow See other posts from Stack Overflow or by ChrisHDog
Published on 2012-06-26T02:22:28Z Indexed on 2012/06/26 3:16 UTC
Read the original article Hit count: 290

I have a SqlBulkCopy operation that is taking data from an MS-Access 2007 database (via OleDbConnection) and using SqlBulkCopy to transfer that data to a SQL Server database. This has previously been working and continues to work for one MS-Access database, but not the other.

I get the error message:

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

It is hard to believe it is a timeout ast the oledbCommand.CommandTimeout = 0 the sqlBulkCopy.BulkCopyTimeout = 0 and on either side (MS-Access and SQL Server the timeouts have now been set to 0).

Are there other issues/exceptions that the above error message could be hiding? Is there a way to determine what the base cause of a sqlBulkCopy.WriteToServer exception is (there doesn't appear to be any inner exceptions etc...)

© Stack Overflow or respective owner

Related posts about sqlbulkcopy

Related posts about timeoutexception