Npgsql API Documentation |

# NpgsqlCommand.CommandText Property

[This is preliminary documentation and subject to change.]

Gets or sets the SQL statement or function (stored procedure) to execute at the data source.

[Visual Basic]
<DefaultValue(Value="")>
<Category(Category="Data")>
NotOverridable Public Property CommandText As String Implements _
IDbCommand.CommandText
[C#]
[DefaultValue(Value="")]
[Category(Category="Data")]
public string CommandText {get; set;}

#### Property Value

The Transact-SQL statement or stored procedure to execute. The default is an empty string.

#### Implements

IDbCommand.CommandText

#### See Also

NpgsqlCommand Class | Npgsql Namespace