CommandText property

Gets or sets the text of a SQL statement or stored procedure.

Syntax
Visual Basic

Public Overrides Property CommandText As String
C#

public override string  CommandText { get; set; }
Property value

The SQL statement or the name of the stored procedure to execute. The default is an empty string.

See also