I need to insert multiple return records from a joining select command to a temporary table. I used the below command . The select statement return two value but when i insert using the below command then the (#TempTableValue) temporary table have nothing.All other field declaration is ok and the joining select command is returning value properly.
INSERT into #TempTableValue DEFAULT values
SELECT #temp1.id,#temp1.DestFieldName,#temp2.FieldValues
FROM #temp2
INNER JOIN #temp1
ON #temp2.FieldName=#temp1.SourceFieldName
select * from #TempTableValue
But the last select command return all Null value. What is the problem here?
Try to remove
DEFAULT valueas below:from documentation: