这么简单的问题?可能是因为我对存储过程太无知!帮一下。
xytzg 2006-05-30 01:54:35 好奇怪的问题,当然应该是我对存储过程太无知了。
我在建了一个极简单的存储过程:
Create PROCEDURE [dbo].[test]
as
select * from pinlun where uesrid=162
go
然后在ASP里调用:
set cmd=server.CreateObject("Adodb.Command")
set rs=nothing
with cmd
.ActiveConnection=conn
.CommandText="test"
.CommandType=4
set rs=.cmd
end with
if rs.eof then '这里不管是设成rs.eof 或是not rs.eof都输出“成功”
response.Write("成功")
end if
'而且我也取不出记录集的值!!!