IMetabaseObjectCreateInfo.SkipIdFormatCheck

Syntax

SkipIdFormatCheck: Boolean;

Description

The SkipIdFormatCheck property determines whether the check of correspondence of repository object identifier to the set format of identifiers is skipped.

Comments

Available values:

Example

 Add links to the Db, Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    CrInfo: IMetabaseObjectCreateInfo;
    MObj: IMetabaseObject;
    DB: IDatabase;
Begin
    MB := MetabaseClass.Active;
    CrInfo := MB.CreateCreateInfo;
    CrInfo.ClassID := MetabaseObjectClass.KE_CLASS_DATABASE;
    CrInfo.Id := 
"NewBD";
    CrInfo.Name := 
New database;
    CrInfo.Parent := MB.Root;
    CrInfo.SkipIdFormatCheck := 
True;
    MObj := MB.CreateObject(CrInfo).Edit;
    DB := MObj 
As IDatabase;
    DB.Authentication := AuthenticationMode.Password;
    DB.DriverId := 
"ORCL";
    DB.LogonData.ParamValue(
"SERVER") := "Test";
    DB.LogonData.ParamValue(
"SCHEME") := "TestShema";
    DB.UseMetabaseCredentials := 
True;
    MObj.Save;
End Sub UserProc;

After executing the example a new database is created in the repository root. The data are placed on the Test server in the TestShema scheme. The password authentication is used when connecting to the database. Login and password are taken from the credentials, specified on login to the platform. The check of correspondence of identifier to the set format of identifiers is not performed when the database is created.

See also:

IMetabaseObjectCreateInfo