Executes the CommandText against the ActiveConnection.
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;
The following example refreshes the Parameters collection for the command.
SQLCommand Class | SQLCommand Members | System.Data.SQL Namespace