IDalConnectionDescriptorParam.Name

Syntax

Name: String;

Description

The Name property returns the name of the parameter used on connecting to the database server.

Example

Add links to the Collections, Dal, and Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    DBDriv: IDalOleDbDrivers;
    Driv: IDalDriver;
    ConnectDesc: IDalConnectionDescriptor;
    Params: IDalConnectionDescriptorParams;
    Params_name: IStringList;
    i: Integer;
Begin
    MB := MetabaseClass.Active;
    Params_name := New StringList.Create;
    DBDriv := New DalOleDbDrivers.Create;
    Driv := DBDriv.Driver(0);
    ConnectDesc := Driv.CreateDescriptor;
    Params := ConnectDesc.Params;
    For i := 0 To Params.Count - 1 Do
        Params_name.Add(Params.Item(i).Name);
    End For;
    i := Params.Count;
End Sub UserProc;

After executing this example the "i" variable contains the number, and the Params_name variable contains names of all parameters that are necessary for connection using the first OLE DB driver installed in the system.

See also:

IDalConnectionDescriptorParam