P
Peter Row
Hi,
I am running a SP on a SQL Server 2000 DB that takes 3 input parameters and
has 2 integer output parameters.
The query does not return a recordset, it has SET NOCOUNT ON.
It works fine in Query Analyser and the output parameters are being set to
what I expect given the inputs.
However when run from with a sqlcommand object using the ExecuteNonQuery()
method, the output parameters
always return zero, which is a lie.
I have another SP that does not return a recordset and returns 1 output
parameter and that works through ADO.NET
and in Query Analyser.
But I can't for the life of me see the difference between them. They both
have the same number of input and output
parameters. Neither returns a recordset.
I've tried taking SET NOCOUNT ON out but that doesn't seem to make any
difference. And that was the only thing
that I could see that was different between the 2 SPs.
Any help or ideas would be much appreciated.
Regards,
Peter
I am running a SP on a SQL Server 2000 DB that takes 3 input parameters and
has 2 integer output parameters.
The query does not return a recordset, it has SET NOCOUNT ON.
It works fine in Query Analyser and the output parameters are being set to
what I expect given the inputs.
However when run from with a sqlcommand object using the ExecuteNonQuery()
method, the output parameters
always return zero, which is a lie.
I have another SP that does not return a recordset and returns 1 output
parameter and that works through ADO.NET
and in Query Analyser.
But I can't for the life of me see the difference between them. They both
have the same number of input and output
parameters. Neither returns a recordset.
I've tried taking SET NOCOUNT ON out but that doesn't seem to make any
difference. And that was the only thing
that I could see that was different between the 2 SPs.
Any help or ideas would be much appreciated.
Regards,
Peter