i have two table like
emp_detail
emp_contact
m using stored procedure to get the output
create procedure pro
as
begin
select * from emp_detail
select * from emp_contact
end
is this correct or any other way in sql server
Getting Multiple Resultset using Single Stored Procedure
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jignesh TrivediRank #16 · 50.3K reputationPosted Sep 12, 2013, 12:22 AM EDT
yes this is correct way to fetch mutiple query result in single store procedure.
Please refer
https://sites.google.com/site/mrmbookmarks/msg/C---Get-multiple-result-sets-from-one-SqlCommand-query-or-stored-procedure
hope this will help you.
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Sep 11, 2013, 8:27 PM EDT
yes you can do it . As your table names both the tables having data of emp so you can retrieve the data in a single result set using joins. it would be better to use joins to get the data.
Suthish NairRank #92 · 22.8K reputationPosted Sep 13, 2013, 2:26 AM EDT