I want you to show me a variable variable in the header.
When I do this:
declare @dato char(6)
declare @sql varchar(800)
set @dato='201601'
select @sql='select @dato as '+ @dato
exec(@sql)
I get this error:
Msg 137, Level 15, State 2, Line 1 Must declare the scalar variable "@dato".
And I want it to appear like this: