I have written a SP in SQL2000. It accepts a variable number of params (using @hcode int = null ) .
The SP works fine from Query Analyser -
Exec slValidation_Criteria 145,5,2
Here 3 of a possible 4 params are passed - the resultset is displayed fine - 186 hits.
Then I try and call the sp from VB (using ADO)
Call de1.slValidation_criteria(hcode,syear,survperiod,impid)
Set rs = de1.rsslvalidation_criteria
if rs.recordcount > 0 then
whatever ......
else
msgbox "No Recs Found"
end if
The SP always returns 0 recordsets
I have used Debug and tracked that the correct params are being passed to the SP.
Please can anyone see where I'm going wrong ...
Regards
Suel
The SP works fine from Query Analyser -
Exec slValidation_Criteria 145,5,2
Here 3 of a possible 4 params are passed - the resultset is displayed fine - 186 hits.
Then I try and call the sp from VB (using ADO)
Call de1.slValidation_criteria(hcode,syear,survperiod,impid)
Set rs = de1.rsslvalidation_criteria
if rs.recordcount > 0 then
whatever ......
else
msgbox "No Recs Found"
end if
The SP always returns 0 recordsets
I have used Debug and tracked that the correct params are being passed to the SP.
Please can anyone see where I'm going wrong ...
Regards
Suel