Did you know that the following will work?
select * into #t from (select 1 as number) as t select * into ###t from (select 1 as #) as t select * into #####t from (select 1 as ###) as t select * into ################ from (select 1 as ###) as t
Published under: SQL Server Tips · · · ·