Microsoft KB Archive/112002

From BetaArchive Wiki

FIX: dbstrcpy() Copies Maximum of 32676 Bytes to Destination

PSS ID Number: Q112002 Article last modified on 01-24-1995

4.20 | 4.20 | 4.20

MS-DOS | OS/2 | WINDOWS

The information in this article applies to:
- Microsoft SQL Server Programmer’s Toolkit, version 4.2

BUG# 8624 (4.20.00)

SYMPTOMS

When using dbstrcpy() to examine the contents of the current DB-Library (DB- Lib) command buffer, only the first 32767 bytes are copied to the destination address.

STATUS

Microsoft has confirmed this to be a problem in DB-Library version 4.20.00. This problem was corrected in DB-Library version 4.21.00. For more information, contact your primary support provider.

MORE INFORMATION

The size of the command buffer is limited only by available memory. Under 16-bit Windows and medium-model MS-DOS, this results in a maximum theoretical size of 64K. Under large model MS-DOS, OS/2, and Windows NT, the size of the command buffer can be much larger.

Additional reference words: 4.20 dblib ptk dblibrary KBCategory: kbprg KBSubCategory: SSrvDB_Lib SSrvProg

=================================================================

Copyright Microsoft Corporation 1995.