Article ID: 308624 - Last Review: March 13, 2006 - Revision: 3.2 Output parameters are not returned when you run an ADO.NET command in Visual C++ .NETThis article was previously published under Q308624 Note Microsoft Visual C++ .NET (2002) supports both the managed code
model that is provided by the Microsoft .NET Framework and the unmanaged native
Microsoft Windows code model. The information in this article applies only to
unmanaged Visual C++ code. For a Microsoft Visual C# .NET version of this
article, see
308621
(http://support.microsoft.com/kb/308621/EN-US/
)
. For a Microsoft Visual Basic .NET version of this article, see 308051 (http://support.microsoft.com/kb/308051/EN-US/ ) . This article refers to the following Microsoft .NET Framework Class Library namespace:
On This PageSYMPTOMS When you run an ADO.NET command, the output parameters may
not be initialized, or they may return an incorrect value. CAUSE This behavior occurs if the direction of the parameter is
not set properly. Output parameters are returned at the end of the data stream
when you use a DataReader object. RESOLUTION To resolve this issue, do both of the following:
STATUSThis
behavior is by design. MORE INFORMATIONSteps to reproduce the problem
REFERENCES
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
308049
(http://support.microsoft.com/kb/308049/
)
How to call a parameterized stored procedure by using ADO.NET and Visual Basic .NET
| Article Translations
|
Back to the top
