Hi. Now I have a stored procedure (SQL server) which will return a XML from "for xml path" statement. I've try to read the response with ExecuteXmlReader and ExecuteReader, but I got nothing. I've google a while but still can't find how to extract the return value, or, how to retrive the return value. Should I use ExecuteXmlReader? or something else? Thanks.
con.Open();
string result = "";
XmlReader tmp = cmd.ExecuteXmlReader();
while (tmp.Read())
{
string s = tmp.Value;
}
return result;