asp传递参数表中字段类型datetime,存储过程参数类型datetime,在asp中参数类型应为adDate吗?为什么不行呢?
set cmd=server.CreateObject("adodb.command")
cmd.ActiveConnection=conn
cmd.CommandText="listquery"
cmd.CommandType=AdCmdStoredProc
set p=cmd.Parameters
p.append cmd.CreateParameter("@firstday",adDate,adParamInput)
p.append cmd.CreateParameter("@secondday",adDate,adParamInput)
cmd("@firstday")="1980-1-1"
cmd("@secondday")="2005-1-1"
set rs=cmd.Execute
set cmd=nothing
结果返回记录集为空