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 2000 Forums
 SQL Server Development (2000)
 How to return a table or recordset from the stored Procedure

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-11-22 : 07:45:09
manish@dahbashi.com writes "Hi

How can i work out to get the complete set of record ( Table ) from the stored procedure, or in other words i would like to say that, i want to write a stored procedure which will give me a set of records as output.

Please guide me how can i go along to do so.

Thanks & Regards
Manish Kaushik"

nr
SQLTeam MVY

12543 Posts

Posted - 2005-11-22 : 07:48:38
include a select statement in the sp.

create proc z
as
select * frmo sysobjects
go
exec z

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-11-22 : 07:54:14
and in your Presentation layer use RecordSet to get the result so that you will be able to work with that

Madhivanan

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

- Advertisement -