FireDAC.Comp.Client.TFDCustomManager.GetStoredProcNames

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure GetStoredProcNames(const AConnectionName, ACatalogName, ASchemaName,
APackage, APattern: string; AList: TStrings; AScopes: TFDPhysObjectScopes = [osMy];
AFullName: Boolean = True);

C++

void __fastcall GetStoredProcNames(const System::UnicodeString AConnectionName, const System::UnicodeString ACatalogName, const System::UnicodeString ASchemaName, const System::UnicodeString APackage, const System::UnicodeString APattern, System::Classes::TStrings* AList, Firedac::Phys::Intf::TFDPhysObjectScopes AScopes = (Firedac::Phys::Intf::TFDPhysObjectScopes() << Firedac::Phys::Intf::TFDPhysObjectScope::osMy ), bool AFullName = true);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCustomManager

Description

Populates a string list with the names of stored procedures in a DB.

Call GetStoredProcNames to retrieve a list of stored procedures and functions from a DB. 

AConnectionName is the connection name to use. 

ACatalogName, ASchemaName restrict procedure names to the catalog and schema. 

APackage restricts procedure names to the package. 

APattern is the LIKE-pattern for filtering procedure names. 

AList is a TStrings descendant that receives the procedure names. Any existing strings are deleted from the list before GetStoredProcNames adds the names of all the procedures in a DB.   AScopes restricts stored procedure names to the specified scopes. It applies only to non-packaged procedures. 

The stored procedure names are normalized (enclosed in quotes), if required; otherwise, they are converted to default database dictionary case sensitive/insensitive. Specify the MetaDefSchema and/or MetaDefCatalog parameters in the connection definition to avoid having these schema and/or catalog names in procedure names.

Example

FDManager.GetStoredProcNames('myconn', '', '', '', '', ListBox1.Items, [osMy, osSystem]);

See Also