Command Object Output Parameter Undefined?
- From: "gary.huntress@xxxxxxxxx" <gary.huntress@xxxxxxxxx>
- Date: 5 Oct 2006 06:52:09 -0700
I'm trying to maintain some old ADO code and I'm having trouble
understanding how my command object is behaving. The command object is
calling a stored procedure. I set up a normal command and connection
object, then I create 2 input and one output parameter. The output
parameter is named "ReturnValue".
The thing I'm confused about is that if I call
Cmd.Execute()
Response.Write (Cmd.Parameters("ReturnValue"))
I get the proper ReturnValue, however if I call
rs1 = Cmd.Execute()
Response.Write (Cmd.Parameters("ReturnValue"))
then ReturnValue is undefined. Nothing else in the code changes. Why
would capturing the returned recordset (whether I use it or not) affect
the parameters in the Cmd object?
Puzzled,
Gary H.
.
- Follow-Ups:
- Re: Command Object Output Parameter Undefined?
- From: Bob Barrows [MVP]
- Re: Command Object Output Parameter Undefined?
- Prev by Date: Re: Refreshing Crystal Reports....
- Next by Date: Re: Command Object Output Parameter Undefined?
- Previous by thread: Re: Refreshing Crystal Reports....
- Next by thread: Re: Command Object Output Parameter Undefined?
- Index(es):
Relevant Pages
|
|