关于一个存储过和读取的问题?在线急!
存储过程
CREATE PROCEDURE surveyitem_show
@typeid bigint,
@guestid bigint
AS
select * from surveyitem where guestid=@guestid and typeid=@typeid order by selectitem asc
GO
function surveyitem_input(typeid,guestid)
Set surveyitem_comm=Server.CreateObject("adodb.Command")
surveyitem_comm.ActiveConnection=conn
surveyitem_comm.CommandText="surveyitem_show"
surveyitem_comm.Commandtype=4
surveyitem_comm.Parameters.refresh()
surveyitem_comm.Parameters(1).value=typeid
surveyitem_comm.Parameters(2).value=guestid
set rs_surveyitem_comm=surveyitem_comm.execute
end function
surveyitem_input 3,rs("id")
为什么只能读出一条记录的,用surveyitem_comm.recordcount统计时为-1!我该怎样才能读出多条记录,在线急!