I have a Dynamic SQl Query as below Create #TempTable(ColumnA int, ColumnB int, ColumnC Int) Insert into #TempTable(select A,B,C from Table1 where some condition formed dynamically) Insert into #TempTable(select A,B,C from Table1 where some condition formed dynamically) Insert into #TempTable(select A,B,C from Table1 where some condition formed dynamically) Insert into #TempTable(select A,B,C from Table1 where some condition formed dynamically) Insert into #TempTable(select A,B,C from Table1 where some condition formed dynamically) select * from #TempTable drop table #TempTable
Note
SELECT * INTO #TempTable FROM SourceTable WHERE.....--condition
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)