Viewing post 31 (of 31 total)
I am not sure why nobody is posting replies but I found solution below.
declare @cols nvarchar(max), @SQL nvarchar(max), @TableName varchar(10) ='Table1'
select @Cols = stuff((select ', ' + quotename(Column_Name) from INFORMATION_SCHEMA.COLUMNS...
December 15, 2010 at 5:01 pm
#1263234