Data.DB.IProviderSupport.PSSetCommandText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure PSSetCommandText(const CommandText: string);

C++

virtual void __fastcall PSSetCommandText _DEPRECATED_ATTRIBUTE0 (const System::UnicodeString CommandText) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.DB.pas
Data.DB.hpp
Data.DB IProviderSupport

Description

Warning: PSSetCommandText is deprecated. Please use IProviderSupportNG.

Assigns a specified SQL command to be executed by PSExecute.

If the provider's Options property includes poAllowCommandText, clients can supply an SQL command along with a call to GetRecords or Execute. This command is passed to the dataset by a call to PSSetCommandText, and subsequently executed by a call to PSExecute.

The value of the CommandText parameter replaces the dataset's SQL statement (if it has one), or replaces the name of an underlying database table or stored procedure.

See Also