Represents an SQL statement or stored procedure to execute against a data source. This class cannot be inherited.
public final class OdbcCommand extends DbCommand implements ICloneable
class provides the following methods for executing commands against a data source: OdbcCommand
Executes commands that return rows.
Executes commands such as SQL INSERT, DELETE, UPDATE, and SET statements.
Retrieves a single value, for example, an aggregate value, from a database.
You can reset the
property and reuse the CommandText object. However, you must close the OdbcCommand before you can execute a new or previous command. OdbcDataReader
If execution of the command causes a fatal
such as a SQL Server severity level of 20 or more, OdbcException may close. However, the user can reopen the connection and continue. OdbcConnection
The following example uses the
method of the ExecuteReader class, together with the OdbcCommand and OdbcDataReader classes, to select rows from a table. OdbcConnection
No code example is currently available or this language may not be supported.
in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Supported in: 3.5, 3.0, 2.0, 1.1