Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
tariq2
Posting Yak Master
125 Posts |
Posted - 2011-11-03 : 11:14:54
|
| Hello,Thank you in advance for your assistance..I am attempting to create the temptable as below,however I am receiving:Msg 156, Level 15, State 1, Line 1Incorrect syntax near the keyword 'as'.create TABLE #temp as(select * from f_ar where DocNumber in ( '11000295','11000296','11000294') and DocCompany = '13001') |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2011-11-03 : 11:24:33
|
| Use the following to accomplish it:select * INTO #temp from f_ar where DocNumber in ( '11000295','11000296','11000294') and DocCompany = '13001' |
 |
|
|
tariq2
Posting Yak Master
125 Posts |
Posted - 2011-11-03 : 11:48:41
|
| Thank you very much Rob :) |
 |
|
|
|
|
|