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.
| Author |
Topic |
|
shantanu88d
Starting Member
35 Posts |
Posted - 2011-03-22 : 04:50:08
|
| I want to return an entire table as an output of a stored procedure. Is it possible??Please explain |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2011-03-22 : 05:40:20
|
| You can use a table-valued function for thisMadhivananFailing to plan is Planning to fail |
 |
|
|
vaibhavktiwari83
Aged Yak Warrior
843 Posts |
Posted - 2011-03-22 : 05:45:32
|
| What is your exact requirement to do this ?Because it can be achived easily by putting code "SELECT * FROM <Your Table>" in stored procedure.Vaibhav TIf I cant go back, I want to go fast... |
 |
|
|
sunitabeck
Master Smack Fu Yak Hacker
5155 Posts |
|
|
Sachin.Nand
2937 Posts |
Posted - 2011-03-22 : 08:59:45
|
Does not make sense.The the SP will return a resultset if you are using a Select statement in the SP.Create Procedure TestasSelect * from TestTable The o/p is going to be a resultset which is indirectly a logical table.PBUH |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
|
|
|