CommandText property

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

Visual Basic syntax

Public Overrides Property CommandText As String

C# syntax

public override string CommandText {get;set;}

Remarks

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