↧
Answer by Kev Riley
To generate a temporary table dynamically without specificng the structure up front, use the `SELECT INTO` syntax select col1, col2, col3 into #YourTempTable from AnotherTable The datatypes will be...
View ArticleAnswer by Magnus Ahlkvist
When you say "dynamic query results", I assume you mean the results from a string containing sql, that you execute with EXECUTE('select * from someTable') If that's the case, you have only one option...
View Article