Hi
IN below code it is giving above error
set @query = 'select Route, ' + @cols + ' into #temp0 from (select Loc,Quantity,name from #temp) x pivot
( Sum(quantity) for name in (' + @cols + ')) piv ';
select * from #temp0
Thanks
Hi
IN below code it is giving above error
set @query = 'select Route, ' + @cols + ' into #temp0 from (select Loc,Quantity,name from #temp) x pivot
( Sum(quantity) for name in (' + @cols + ')) piv ';
select * from #temp0
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Sachin SinghPosted May 4, 2022, 5:52 PM