Does anyone have an idea how to get around this error?
I would add that it applied ##urlopy2 but this causes other errors so I looking for another solution.
set @strCreate = 'create table #urlopy2(' + @cols + ')'
Exec sp_executesql @strCreate
select * from #urlopy2
Msg 208, Level 16, State 0, Procedure sp_poza_biurem6, Line 89
Invalid object name '#urlopy2'.