FireDAC.Comp.Client.TFDMetaInfoCommand.SchemaName

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

property SchemaName: string read FSchemaName write SetSchemaName default 0;

C++

__property SchemaName = {default=0};

Propriétés

Type Visibilité  Source Unité  Parent
property published
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDMetaInfoCommand

Description

Identifie le nom du schéma pour certains types de la commande.

FireDAC.Comp.Client.TFDMetaInfoCommand.SchemaName hérite de FireDAC.Comp.Client.TFDCustomCommand.SchemaName. Tout le contenu en-dessous de cette ligne se réfère à FireDAC.Comp.Client.TFDCustomCommand.SchemaName.

Identifie le nom du schéma pour certains types de la commande.

SchemaName identifie le nom du schéma où l'objet commande réside. La signification dépend de CommandKind et MetainfoKind :

  • Si CommandKind est dans [skStoredProc, skStoredProcWithCrs, skStoredProcNoCrs], SchemaName spécifie alors le nom du schéma, où la procédure réside.
  • Si MetainfoKind n'est pas mkNone, SchemaName spécifie alors le nom du schéma, où l'objet décrit réside.

Exemple

 //Example 1:
 ADCommand1.SchemaName := 'SCOTT';
 ADCommand1.CommandText.Text := 'PROC1';
 ADCommand1.CommandKind := skStoredProc;
 ADCommand1.Prepare;
 ADCommand1.Params[0].AsInteger := 100;
 ADCommand1.Params[1].AsString := 'Bill Gates';
 ADCommand1.Execute;
 
 //Example 2:
 ADMetaInfoCommand1.SchemaName := 'ADDEMO';
 ADMetaInfoCommand1.ObjectName := 'MY_TAB';
 // or on Oracle just ADMetaInfoCommand1.ObjectName := 'ADDEMO.MY_TAB';
 ADMetaInfoCommand1.MetaInfoKind := mkTableFields;
 ADMetaInfoCommand1.Open;

Voir aussi