Is there anyway to do this in SQL Server 2005?
declare @tv_tablelist table (recnum int identity(1,1) primary key, newvar varchar(500))
declare @mysql nvarchar(4000)
set @mysql = 'insert into @tv_tablelist(newvar) values (''test test test'')'
Exec sp_executesql @mysql,
N'@tv_tablelist table (recnum int identity(1,1) primary key, newvar varchar(500)) OUTPUT',
@tv_tablelist OUTPUT
select * from @tv_tablelist