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!

SQLCommand.Execute

Executes the CommandText against the ActiveConnection.

Overload List

Executes the CommandText against the ActiveConnection and returns a result Object.

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

Executes the CommandText against the ActiveConnection and builds a SQLDataReader.

[Visual Basic] Overloads Shadows Public Sub Execute(SQLDataReader)
[C#] public new void Execute(SQLDataReader);
[C++] public: new void Execute(SQLDataReader*);
[JScript] public new function Execute(SQLDataReader);

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);

Executes the CommandText against the ActiveConnection. This is the default method.

[Visual Basic] Overloads Overrides Public Function Execute() As Integer
[C#] public override int Execute();
[C++] public: override int Execute();
[JScript] public override function Execute() : int;

Example

The following example refreshes the Parameters collection for the command.

See Also

SQLCommand Class | SQLCommand Members | System.Data.SQL Namespace