例:
declare @tb varchar(50)
declare c cursor for
  select name from sysobjects where xtype='U' and name<>'dtproperties'
open c
fetch next from c into @tb
while @@fetch_status=0
begin
  print @tb
  fetch next from c into @tb
end
close c
deallocate c