SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
SELECT * INTO #Temp FROM (select * from tblorders where busidate ='2016-11-24' and locationID=12 ) as X
Please use alias with x so it will not failed the script and result.