运行以下代码:
 DECLARE @myvariable int;
set @myvariable = 1;
while (@myvariable=1)
begin
select *
from sys.databases
---do nothing
end
go