有一个存储过程,求对应的asp
declare @i int
declare @year int
declare @month int
declare @day int
declare @Count int
set @i=0
set @year=2001
set @month=12
set @day=20
while @i<23
begin
select @Count=count(*) from server where day(VisitTime)=@day and month(VisitTime)=@month and year(VisitTime)=@year and DATENAME(Hour,VisitTime)=@i
set @i=@i+1
end
要输出@Count的值