Quantcast
Channel: Answers for "Get results into table from dynamic tsql"
Browsing latest articles
Browse All 4 View Live

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 Article


Answer 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

Browsing latest articles
Browse All 4 View Live