注册 登录
编程论坛 SQL Server论坛

这个求最大ID号的存储过程怎么就不输出显示呢??就一句话吧.....

yzwt2004 发布于 2007-04-19 16:56, 676 次点击
create proc maxid
@maid int output
as
begin
select top 1 @maid=id from info order by id desc
end
go


前台调用:
Dim adoComm
Set adoComm = CreateObject("ADODB.Command")
With adoComm
.ActiveConnection =Conn
.CommandType = 4
.CommandText = "maxid"
.Execute
response.write (.Parameters.Item("@maid").ValueEnd)
With
Set adoComm = Nothing

这个那有错??我看就十分的对嘛,嘿嘿,不过肯定是错了,谁帮帮一下,谢了

1 回复
#2
feeless2007-04-20 15:57
adoComm连接里数据库都没有。
1