Friday, January 16, 2009

The Execution of a Command

The Execution of a Command:
r creating the command and passing it to the database through the connection, you can then execute it. To support this, the OleDbCommand class is equipped with a method named ExecuteNonQuery(). Its syntax is:
Public Overridable Function ExecuteNonQuery()
As Integer Implements
IDbCommand.ExecuteNonQuery

This method is normally called to execute a command that carries a SQL statement.

The Command Timed Out:

The OleDbCommand.CommandTimeOut property allows you to specify the time to wait before trying to execute a command. The default value of this property is 30 (seconds).



Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home