Article ID: 328514 - Last Review: November 15, 2007 - Revision: 4.5 FIX: Binding an output parameter of an Oracle stored procedure to adBSTR results in an incorrect value
This article was previously published under Q328514 On This PageSYMPTOMS When you bind a varchar2 type output parameter of an Oracle stored procedure to adBSTR in a Microsoft ADO application, the value that Microsoft OLE DB
provider for Oracle (MSDAORA) returns is incorrect. In a Microsoft Visual Basic
application the output parameter is "????", and in a Microsoft Visual C++
application, the output parameter is a truncated ANSI value. CAUSE This occurs because of a bug in MSDAORA. Although the
output parameter data type is marked as DBTYPE_WSTR internally, the data itself
is not converted to Unicode before it is sent to the data conversion layer.
RESOLUTION A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix. If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix. Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: http://support.microsoft.com/contactus/?ws=support
(http://support.microsoft.com/contactus/?ws=support)
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.
The English version of this hotfix has the file attributes (or later) 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 tool in Control Panel.
MDAC 2.7
Date Version Size File name
------------------------------------------------------------
30-Aug-2002 2.70.9001.20 221,184 bytes Msdaora.dll
MDAC 2.7 Service Pack 1 (SP1)
Date Version Size File name
------------------------------------------------------------
06-12-2003 2.71.9031.45 221,184 bytes Msdaora.dll
MDAC 2.8
Date Version Size File name
------------------------------------------------------------
27-Feb-2004 18:29 2.80.1035.0 225,280 Msdaora.dll
27-Feb-2004 18:29 2000.85.1035.0 24,576 Odbcbcp.dll
27-Feb-2004 18:28 2000.85.1035.0 401,408 Sqlsrv32.dll
839801
(http://support.microsoft.com/kb/839801/
)
FIX: Hotfixes are available for MDAC 2.8
WORKAROUNDTo work around this problem, bind the output parameter of varchar2 to adVarchar instead of to adBSTR.STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. MORE INFORMATIONSteps to reproduce the behavior
| Article Translations
|
Back to the top
