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.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 nevermind

Author  Topic 

KilpAr
Yak Posting Veteran

80 Posts

Posted - 2013-03-08 : 12:09:59
nevermind found the answer

Lamprey
Master Smack Fu Yak Hacker

4614 Posts

Posted - 2013-03-08 : 12:13:08
I think you need to let the INSERT INTO create teh table. So, don't create the table before the stored procedure executes. I'm not sure if that is causing the error message you are seeing though.

Otherwise, I'd use the OPENROWSET method. Here is a link on hwo to do that:
http://stackoverflow.com/questions/653714/how-to-select-into-temp-table-from-stored-procedure
Go to Top of Page

Lamprey
Master Smack Fu Yak Hacker

4614 Posts

Posted - 2013-03-08 : 12:14:53
FYI, It's bad form to remove your question like that..
Go to Top of Page
   

- Advertisement -