Executes the command against the data source. This is the default method.
[Visual Basic] Overloads Overridable Public Function Execute() As Integer [C#] public virtual int Execute(); [C++] public: virtual int Execute(); [JScript] public function Execute() : int;
Exception Type | Condition |
---|---|
ExecuteRequiresConnection | The connection does not exist. |
ExecuteRequiresOpenConnection | The connection is not open. |
Notes to Inheritors: When overriding Execute in a derived class, be sure to call the base class's Execute method.
DBCommand Class | DBCommand Members | System.Data.Internal Namespace | DBCommand.Execute Overload List