FIX: You may receive an error message when an ADO.NET-connected application uses the SqlBulkCopy class (913177)
The information in this article applies to:
- Microsoft .NET Framework 2.0
SYMPTOMSWhen a Microsoft ADO.NET-connected application uses the SqlBulkCopy class, you may receive an error message that is similar to the following: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternal()
at System.Data.SqlClient.SqlBulkCopy.WriteRowSourceToServer(Int32 columnCount)
at System.Data.SqlClient.SqlBulkCopy.WriteToServer(IDataReader reader)
at ConsoleApplication1.Program.Main(String[] args) Note- The error message depends on the size of the data that is being copied. There may not be a specific size or a specific size range that consistently causes the error message.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.This problem does not occur if the MultipleActiveResultSets connection string property has been set to True for the SQLConnection object. However, we do not recommend that you use this configuration as a workaround to prevent this problem. The MultipleActiveResultSets connection string property should only be enabled if the client application truly must maintain multiple active results on the connection.
Modification Type: | Minor | Last Reviewed: | 7/26/2006 |
---|
Keywords: | kbBug kbfix kbtshoot kbQFE kbpubtypekc KB913177 kbAudITPRO kbAudDeveloper |
---|
|