Article ID: 308621 - Last Review: December 11, 2006 - Revision: 4.6 Output parameters are not returned when you run an ADO.NET command in Visual C#This article was previously published under Q308621 For a Microsoft Visual Basic .NET version of this
article, see
308051
(http://support.microsoft.com/kb/308051/EN-US/
)
. For a Microsoft Visual C++ .NET version of this article, see 308624 (http://support.microsoft.com/kb/308624/EN-US/ ) . This article refers to the following Microsoft .NET Framework Class Library namespaces:
On This PageSYMPTOMS Output parameters do not appear to be initialized or return
a wrong value when you run an ADO.NET command. CAUSE This problem can occur for two reasons:
RESOLUTION To resolve this problem, use one of the following methods:
NOTE: The parameter object for the return value must be the first item in the Parameters collection. In addition, make sure that the parameter's data type matches the expected return value. STATUSThis
behavior is by design. MORE INFORMATIONSteps to Reproduce the Behavior
REFERENCESFor additional information, click the article number below to
view the article in the Microsoft Knowledge Base: 308049
(http://support.microsoft.com/kb/308049/EN-US/
)
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual Basic .NET
| Article Translations
|
Back to the top
