Declare @collist2 Table (id int identity(1,1), ColName VarChar(255))
Insert into @collist2(ColName) Values('All Columns')
Insert into @collist2
Select distinct c.[name] as ColName
From sysobjects o inner join syscolumns c on o.[id] = c.[id]
Where o.xtype = 'U' and
o.[name] = @tblName
Select * from @collist2
Order by id asc