NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ADOCommand.CommandText

Gets or sets the SQL command text to run against the data source.

[Visual Basic]
Overridable Public Property CommandText As String
[C#]
public string CommandText {override get; override set;}
[C++]
public: __property virtual String* get_CommandText();
public: __property virtual void set_CommandText(String*);
[JScript]
public function get CommandText() : String;
public function set CommandText(String);

Property Value

The SQL command text to execute. The default value is the empty string ("").

Remarks

If the assigned string is not the current string, a OnSchemaChanging event is raised and the new value set. then, a OnSchemaChanged event is raised.

Example

The following example creates an ADOCommand and sets some of its properties.

See Also

ADOCommand Class | ADOCommand Members | System.Data.ADO Namespace | ActiveConnection | CommandTimeout | CommandType | RowFetchCount | CommandBehavior | NamedParameters