Hello,I have a SP that will return records and that SP has an ouput paramater that will return the recordcount.In my ASP code I am trying to get the records and the output paramter at the same time. But I couldn't get them.I get the ouput paramater if I do this:set cmd = server.CreateObject("adodb.command")set cmd.ActiveConnection=conncmd.CommandType = 4 cmd.CommandText = "s_test"cmd.Parameters.Append cmd.CreateParameter("intNumID",adInteger,adParamInput,4,20)cmd.Parameters.Append cmd.CreateParameter("numRecs",adInteger,adParamOutput)cmd.ExecuteResponse.Write cmd.Parameters("numRecs").Value & "<br>"But if I try to do with use Recordset I will not get the output parameter but I can loop through all the records.Set rs = Server.CreateObject("ADODB.recordset")set cmd = server.CreateObject("adodb.command")set cmd.ActiveConnection=conncmd.CommandType = 4 cmd.CommandText = "s_test"cmd.Parameters.Append cmd.CreateParameter("intNumID",adInteger,adParamInput,4,20)cmd.Parameters.Append cmd.CreateParameter("numRecs",adInteger,adParamOutput)Set rs = cmd.ExecuteIf Not rs.EOF ThenResponse.Write cmd.Parameters("numRecs").Value & "<br>"while Not rs.EOF Response.Write rs("Num_ID") & "<br>"rs.MoveNextWendEnd Ifrs.CloseSet rs = NothingThanks for your help,maximus