FIX: The CDatabase::Connect method passes an incorrect buffer size to the SQLDriverConnect function in Visual Studio .NET 2003 (883657)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2003), Professional Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Academic Edition
  • Microsoft Visual C++ .NET (2003)

SYMPTOMS

In Microsoft Visual Studio .NET 2003, the CDatabase::Connect method passes an incorrect buffer size to the SQLDriverConnect function in a Microsoft Visual C++ .NET solution. Additionally, the application that makes this function call may close unexpectedly.

CAUSE

This problem occurs because of a bug in the CDatabase::Connect method in the Dbcore.cpp file. The incorrect buffer size is passed to the SQLDriverConnect method. Therefore, the application closes.

RESOLUTION

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next P1 that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

No prerequisites are required.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
File nameFile versionFile sizeDateTimePlatform
Afx.h56,22317-Jul-200322:22x86
Atl.lib14,54612-Aug-200402:51x86
Atl71.dll7.10.4224.089,08812-Aug-200402:51x86
Atlcomtime.inl17,67718-Nov-200303:55x86
Atlevent.h13,014 22-Jan-200417:05x86
Atlhost.h76,374 04-May-200418:11x86
Atls.lib1,199,63212-Aug-200402:51x86
Atlsd.lib1,240,23812-Aug-200402:50x86
Atltime.h10,64729-Aug-200322:16x86
Atltime.inl14,77329-Aug-200322:18x86
Dbcore.cpp118,40203-Aug-200419:55x86
Eafxis.lib319,74612-Aug-200403:56x86
Eafxisd.lib310,12812-Aug-200403:56x86
Filest.cpp9,12111-Sep-200320:30x86
Mfc70d.dll7.10.4224.02,183,16812-Aug-200404:00x86
Mfc71.dll7.10.4224.01,060,86412-Aug-200404:59x86
Mfc71.lib2,580,01012-Aug-200404:02x86
Mfc71chs.dll7.10.4224.040,96012-Aug-200404:13x86
Mfc71cht.dll7.10.4224.045,05612-Aug-200404:13x86
Mfc71d.lib?3,361,06212-Aug-200404:01x86
Mfc71deu.dll7.10.4224.065,53612-Aug-200404:13x86
Mfc71enu.dll7.10.4224.057,34412-Aug-200404:13x86
Mfc71esp.dll7.10.4224.061,44012-Aug-200404:13x86
Mfc71fra.dll7.10.4224.061,44012-Aug-200404:13x86
Mfc71ita.dll7.10.4224.061,44012-Aug-200404:13x86
Mfc71jpn.dll7.10.4224.049,15212-Aug-200404:13x86
Mfc71kor.dll7.10.4224.049,15212-Aug-200404:13x86
Mfc71u.dll7.10.4224.01,047,55212-Aug-200404:50x86
Mfc71u.lib3,348,14012-Aug-200404:06x86
Mfc71ud.dll7.10.4224.02,178,04812-Aug-200404:03x86
Mfc71ud.lib4,287,96012-Aug-200404:04x86
Mfcs71.lib555,88812-Aug-200404:24x86
Mfcs71d.lib582,13612-Aug-200404:01x86
Mfcs71u.lib490,05412-Aug-200404:25x86
Mfcs71ud.lib507,60012-Aug-200404:04x86
Nafxcw.lib16,912,68212-Aug-200403:56x86
Nafxcwd.lib17,041,47812-Aug-200403:56x86
Nafxis.lib129,13812-Aug-200403:56x86
Nafxisd.lib132,45412-Aug-200403:56x86
Objcore.cpp6,07317-Jul-200322:19x86
Occcont.cpp24,32317-Jul-200323:21x86
Occdlg.cpp20,90116-Jul-200421:34x86
Olefact.cpp16,80120-Jan-200418:31x86
Olepset.cpp40,43125-Mar-200404:32x86
Olestrm.cpp14,14105-May-200415:48x86
Statreg.h34,21414-Jul-200419:47x86
Uafxcw.lib17,211,27412-Aug-200403:59x86
Uafxcwd.lib17,433,48812-Aug-200403:59x86
Vc.user.atl71.rtl.x8101,37612-Aug-200419:46x86
Vc.user.mfc71.loc.rtl.x8100,86412-Aug-200419:46x86
Vc.user.mfc71.rtl.x8919,04012-Aug-200419:46x86
Winfrm.cpp65,30412-Aug-200400:29x86
Winocc.cpp19,19029-May-200401:40x86

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

884057 FIX: In Visual Studio .NET 2003, the CRegObject::ResourceRegisterSz function does not test for a NULL value, and the CDatabase::Connect method passes an incorrect buffer size


Modification Type:MajorLast Reviewed:7/20/2006
Keywords:kbprb kbQFE kbhotfixserver KB883657 kbAudDeveloper