Home Forums SQL Server 2008 SQL Server 2008 - General create table variable dynamically RE: create table variable dynamically
BriPan
SSCrazy
Points: 2061
More actions
October 29, 2012 at 10:56 pm
#1553995
To create Dynamic variable table
declare @temptable table
(
id int identity(1,1),
name varchar(50)
)
insert into @temptable
select name from yourtable