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
 General SQL Server Forums
 New to SQL Server Programming
 How Return Table Varibles By Stored Procedure

Author  Topic 

yaman
Posting Yak Master

213 Posts

Posted - 2008-05-22 : 09:07:27
Can We return Table Varibles
Using OUTPUT VARIABLES OR ANY OTHER SOLUTION's.
Pls Sir Help Me

Yaman

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-05-22 : 09:11:28
Not until SQL Server 2008.
But you can use a function to return a table.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2008-05-22 : 09:39:02
also you can return one or more result sets from a proc, but you must know this already, no?


elsasoft.org
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-05-22 : 11:18:16
quote:
Originally posted by yaman

Can We return Table Varibles
Using OUTPUT VARIABLES OR ANY OTHER SOLUTION's.
Pls Sir Help Me

Yaman


Using OUTPUT clause you cant create a table variable, but you can populate an already created table variable with values from another query using OUTPUT clause. Can i ask what is your requirement?
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-05-26 : 05:07:55
See if this helps
http://www.sommarskog.se/share_data.html

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -