declare @IP varchar(50),@Email varchar(50)
declare tc cursor for select HostIP,UserEmail from RestartLog
open tc
fetch next from tc into @IP ,  @Email
while @@fetch_status = 0
begin
    
print @IP+' '+@Email
    
fetch next from tc into @IP ,  @Email
end
close tc
deallocate tc

相关文章: