Not sure if it's possible at all, especially after scrutinizing some info on the Internet. I'd like to rewrite the following as not to have to specify the columns at all, if possible. Second hand happiness would be having a generic set of columns that accept everything else, independent of type nor number.
The reason for that is, of course, that I'm lazy, sick and tired of rewriting the holder beep for each, single case.
declare @beep table(Hazaa int)
insert into @beep
select WholeSomeValue from ThisOrThatTable
That'd be nice to be able to use something like this.
declare @beep table(GenericColumns ???)
insert into @beep
select * from ThisOrThatTable
Or, at least, like so.
declare @beep table(GenericColumn1 ???, GenericColumn2 ???, GenericColumn3 ???)
insert into @beep
select Col1, Col2, Col3 from ThisOrThatTable