question

tlenzmeier avatar image
tlenzmeier asked

Insert "EXECUTE(@query) Into a Temp Table

I am trying to take the results of a dynamic pivot query and inserting it into a temporary table. The last step in the query to be executed is (@query). Here's what I have so far in the attached text file.

dynamic-pivot.txt

sql-serverinsertpivottable
dynamic-pivot.txt (2.1 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.