M
Mark Goldin
I am using that code to execute SP that returns xml auto:
SqlConnection conn = new SqlConnection("Initial Catalog=manpower;Data
Source=devsrv01;uid=sa;pwd=;");
XmlReader xreader = SqlHelper.ExecuteXmlReader(conn,
CommandType.StoredProcedure, "test" );
XmlWriter w = new XmlTextWriter(@"c:\foo.xml", Encoding.UTF8);
xreader.MoveToContent();
while(xreader.Read())
w.WriteNode(xreader, false);
the foo.xml has nothing.
If SP has for xml explicit then the file has some xml but not all. It's cut
somewhere in a middle.
Any idea?
SqlConnection conn = new SqlConnection("Initial Catalog=manpower;Data
Source=devsrv01;uid=sa;pwd=;");
XmlReader xreader = SqlHelper.ExecuteXmlReader(conn,
CommandType.StoredProcedure, "test" );
XmlWriter w = new XmlTextWriter(@"c:\foo.xml", Encoding.UTF8);
xreader.MoveToContent();
while(xreader.Read())
w.WriteNode(xreader, false);
the foo.xml has nothing.
If SP has for xml explicit then the file has some xml but not all. It's cut
somewhere in a middle.
Any idea?