Return the data from your stored procedure as XML in the first place ... something like ...
CREATE PROCEDURE select_request
@id int
AS
BEGIN
SET NOCOUNT ON;
select @name=name, @count=count,@fio=fio,@date=date from View_4
WHERE id_req=@id for xml auto, elements
END
Then in your code use something like
XmlReader xmlResults = cmd.ExecuteXmlReader();
Couple of caveats
- I haven't been able to test this properly so there may be typos
-the SQL may need to change depending on your verson of SQL Server
- the XML returned is a fragment not a full XML document - see this link for a solution
http://www.sqlxml.org/faqs.aspx?faq=16[
^]