ExecuteStream
This method executes a command using the XmlCommandType and CommandText properties and returns the result as an XML document in a new Stream object.
Declaration
// C# public Stream ExecuteStream();
Return Value
A Stream.
Remarks
The behavior of ExecuteStream varies depending on the XmlCommandType property value:
-
XmlCommandType=OracleXmlCommandType.NoneExecuteStreamthrows anInvalidOperationException. -
XmlCommandType=OracleXmlCommandType.QueryExecuteStreamexecutes the select statement in theCommandTextproperty, and if successful, returns anOracleClobobject containing the XML document that was generated.OracleClobcontains Unicode characters.If the SQL query does not return any rows, then
ExcecuteStreamreturns anOracleClobobject containing an empty XML document. -
XmlCommandType=OracleXmlCommandType.Insert,OracleXmlCommandType.Update, orOracleXmlCommandType.Delete.The value of the
CommandTextproperty is an XML document.ExecuteStreamsaves the data in that XML document to the table or view that is specified in theXmlSavePropertiesproperty and an emptyOracleClobis returned.