![sql - Using foreach loop container to create new columns in a table- can't solve "incorrect syntax near '@P1'" error - Stack Overflow sql - Using foreach loop container to create new columns in a table- can't solve "incorrect syntax near '@P1'" error - Stack Overflow](https://i.stack.imgur.com/zGzCO.png)
sql - Using foreach loop container to create new columns in a table- can't solve "incorrect syntax near '@P1'" error - Stack Overflow
![sql server - SQL, foreach-loop-like INSERT based on inserted value that need to be re-selected, possible? - Stack Overflow sql server - SQL, foreach-loop-like INSERT based on inserted value that need to be re-selected, possible? - Stack Overflow](https://i.stack.imgur.com/2TG1I.png)
sql server - SQL, foreach-loop-like INSERT based on inserted value that need to be re-selected, possible? - Stack Overflow
![Store file names and modified dates in a table without a Foreach Loop Task – SQL Server – SSIS | Paul Hernandez playing with Data Store file names and modified dates in a table without a Foreach Loop Task – SQL Server – SSIS | Paul Hernandez playing with Data](https://hernandezpaul.files.wordpress.com/2013/02/foreachloop_files.jpg)
Store file names and modified dates in a table without a Foreach Loop Task – SQL Server – SSIS | Paul Hernandez playing with Data
![sql - Using foreach loop container to create new columns in a table- can't solve "incorrect syntax near '@P1'" error - Stack Overflow sql - Using foreach loop container to create new columns in a table- can't solve "incorrect syntax near '@P1'" error - Stack Overflow](https://i.stack.imgur.com/M7KbU.png)