Hi,
I have a sql query that has two parts 1) Which calls a stored proc and populates the data in the temp table (using openXML function) 2) The other part of sql that joins with this table and the result set
Currently when i execute the stored proc it returns me the two result set. But it should return only me the second result set not the temp table result set.
My Visual Studio code by default selects the first result set whereas the required result set is second one. The sql is as follow :
@SQL = 'Create table #TempTable (YearEntry int, Quarter int) insert into #TempTable exec CreateTableFromXML @YearQuarterList ' +
' Select * from ABCD inner join #TempTable T on T.YearEntry = A.Year '
It should return only all the columns from A table whereas it retuns
#TempTable and all the columns from A Table.
Can anybody please guide me how to get only the result set that returns all the columns from A table.
thanks