Re: SP - output parameter not coming back
- From: "Axel" <realraven2000@xxxxxxxxxxx>
- Date: 15 Jun 2005 06:08:48 -0700
Thanks Bob,
lots of very interesting reading in all the links that you sent. A lot
of the code I use is copy and paste so I will try and follow your
advice on OLEDB vs ODBC and the one about not using objects in session
variables, should be easy enough to change these. I also enabled SET
NOCOUNT ON again, I had tested it with both options.
I also added the return parameter to my command object (1st param
added)
CmdSP.Parameters.Append _
CmdSP.CreateParameter("RETURN_VALUE", adInteger, _
adParamReturnValue, 4)
and I thought that this would actually solve my problem. but still I do
not get anything useful back from @mycount.
Also I have tested the SP using SQL Query Analyzer and it does not seem
to set the output parameter. Looks like there is either something wrong
in my SP Syntax or some underlying setting of the Server (is there a
setting that disables output parameters - or maybe it has to do with
the passed back recordset?)
I do not want to close the recordset because I want to display the
number of results before the table of results. I also do not want to
copy to a Array. The client side cursor did not help.
If I do not find out about the output parameter I am considering
running 2 separate stored Procedures (1 to get the count of my query in
a separate resultset, the other for the actual search results) but I
know that this is a most unfortunate and expensive solution. At least
this is only a product catalogue so the info in it is not highly
volatile. However it might even be technically better than using a
client side cursor - what do you think?
tia again
Axel
.
- Follow-Ups:
- Re: SP - output parameter not coming back
- From: Bob Barrows [MVP]
- Re: SP - output parameter not coming back
- From: Axel
- Re: SP - output parameter not coming back
- References:
- Re: SP - output parameter not coming back
- From: Bob Barrows [MVP]
- Re: SP - output parameter not coming back
- Prev by Date: Re: Double click - OT rebut
- Next by Date: Re: SP - output parameter not coming back
- Previous by thread: Re: SP - output parameter not coming back
- Next by thread: Re: SP - output parameter not coming back
- Index(es):
Relevant Pages
|