This method executes a command using the
CommandText properties and appends the result as an XML document to the existing
Stream provided by the application.
// C# public void ExecuteToStream(Stream outputStream);
The behavior of
ExecuteToStream varies depending on the
XmlCommandType property value:
ExecuteToStreamexecutes the select statement in the
CommandTextproperty, and if successful, appends the XML document that was generated to the given
If the SQL query does not return any rows, then nothing is appended to the given
Stream. The character set of the appended data is Unicode.
The value of the
CommandTextproperty is an XML document.
ExecuteToStreamsaves the changes in that XML document to the table or view that is specified in the
XmlSavePropertiesproperty. Nothing is appended to the given