create procedure sp_test
as
begin
    declare @t table(col varchar(50))
    insert @t select 'hello' union all select 'world'
    select * from @t
end
goexec sp_test/*
col
---------
hello
world
*/drop procedure sp_test