FIX: Bcp_batch Stops Responding After Interleaved Bcp_sendrow

ID: Q164178


The information in this article applies to:

BUG #: 15926 (6.5)

SYMPTOMS

When you use two dbprocesses in one program to insert image/text data with the Bulk Copy Program (BCP) functions of DB-Library in two different tables, the program may stop responding on bcp_batch if you call bcp_sendrow and bcp_batch in the following order:


   for a = 1 to m
   {
      for i=1 to n
      {
         bcp_sendrow(process A)
         bcp_sendrow(process B)
      }
   bcp_batch(process A)
   bcp_batch(process B)
   } 

This problem only happens when the 'select into/bulkcopy' option is set in the database and BCP contains image/text data.


WORKAROUND

To work around this problem, do any of the following:


STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider.

Additional query words: DEADLOCK


Keywords          : kbprg SSrvBCP SSrvDB_Lib kbbug6.50 
Version           : 6.5
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: April 8, 1999