NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ADOCommand.Execute

Executes the CommandText against the ActiveConnection and builds an object capable of forward-only data reads.

Overload List

Executes the CommandText against the ActiveConnection and builds an ADODataReader.

[Visual Basic] Overloads Overridable Public Sub Execute(ADODataReader)
[C#] public virtual void Execute(ADODataReader);
[C++] public: virtual void Execute(ADODataReader*);
[JScript] public function Execute(ADODataReader);

Executes the CommandText against the ActiveConnection and builds an IDataReader.

[Visual Basic] Overloads Overrides Public Sub Execute(IDataReader)
[C#] public override void Execute(IDataReader);
[C++] public: override void Execute(IDataReader*);
[JScript] public override function Execute(IDataReader);

Example

The following example creates an ADOCommand, clones it, executes it, then cancels the execution.

See Also

ADOCommand Class | ADOCommand Members | System.Data.ADO Namespace