Microsoft KB Archive/101422

From BetaArchive Wiki

BUG: Multiple Calls to bcp_colfmt Fail to Free Memory


The information in this article applies to:

  • Microsoft SQL Server Programmer's Toolkit, version 4.2

BUG# 8895 (4.2)


An application that uses DB-Library (DB-Lib) bulk copy (BCP) functions encounters DB-Lib error 10000 after running for a significant amount of time:

Unable to allocate sufficient memory.


DB-Lib incorrectly fails to free memory after multiple calls to bcp_colfmt for the same column during a single BCP operation.


For a single BCP operation initiated with bcp_init, call bcp_colfmt only once for each column.


Microsoft has confirmed this to be a problem in DB-Library version 4.20.00. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional query words: dblib

Keywords : kbprogramming kbtool
Issue type :
Technology : kbSQLServSearch kbAudDeveloper kbSQLServPTK420

Last Reviewed: March 18, 1999
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.