PRB: SQL Server Stored Procedure's Out Parameters Can Return Incorrect Values (224591)
The information in this article applies to:
- ActiveX Data Objects (ADO) 1.5
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
This article was previously published under Q224591 SYMPTOMS When using ADO and the default server side cursor is out,
parameters return NULL values. CAUSE ADO doesn't fill in the out parameters for a recordset
created using adUseServer (server side cursor) until the returned recordset is
closed. RESOLUTION Use one of the following methods to get the correct output
values from the stored procedure. - Select Client side server adUseClient. In the code below
insert the following line just before the comm->Execute() call.
conn->CursorLocation=adUseClient;
- Close the returned recordset before getting the value of
the output parameter. In the code below insert the following line just before
obtaining the parameter values.
rs->Close();
STATUS This behavior is by design.
Modification Type: | Major | Last Reviewed: | 11/4/2003 |
---|
Keywords: | kbDatabase kbprb KB224591 kbAudDeveloper |
---|
|