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 2005 Forums
 Transact-SQL (2005)
 Can I return a Table from SP????

Author  Topic 

khufiamalik
Posting Yak Master

120 Posts

Posted - 2008-09-03 : 03:01:02
Can I return a Table from SP????
IF Yes Then please give me Syntax
Thanks.

sunil
Constraint Violating Yak Guru

282 Posts

Posted - 2008-09-03 : 03:06:35
You can but only in SQL server 2008
also, see this
http://www.sommarskog.se/share_data.html
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-09-03 : 05:25:27
SELECT <col list>
FROM Table1

This will return a table from a SP.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

Vinnie881
Master Smack Fu Yak Hacker

1231 Posts

Posted - 2008-09-03 : 11:39:47
Insert Into @MyTable(Col1,Col2,Col3)
exec MyStoredProcedure
Go to Top of Page
   

- Advertisement -