SQL Server Forums
Profile | Register | 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
 New Topic  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

4361 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

4361 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  
 New 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 0.05 seconds. Powered By: Snitz Forums 2000