Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 nevermind
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

KilpAr
Yak Posting Veteran

80 Posts

Posted - 03/08/2013 :  12:09:59  Show Profile  Reply with Quote
nevermind found the answer

Edited by - KilpAr on 03/08/2013 12:11:36

Lamprey
Flowing Fount of Yak Knowledge

4614 Posts

Posted - 03/08/2013 :  12:13:08  Show Profile  Reply with Quote
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

Edited by - Lamprey on 03/08/2013 12:14:25
Go to Top of Page

Lamprey
Flowing Fount of Yak Knowledge

4614 Posts

Posted - 03/08/2013 :  12:14:53  Show Profile  Reply with Quote
FYI, It's bad form to remove your question like that..
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 1.31 seconds. Powered By: Snitz Forums 2000