DatabaseMetaDataValidateSequenceName Method |
Validates the name of the sequence.
Namespace: SD.LLBLGen.Pro.ApplicationCore.MetaDataAssembly: SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.0.0.0 (5.0.0)
Syntax public bool ValidateSequenceName(
string catalogName,
string schemaName,
DBSequence containingSequence,
string nameToValidate,
bool checkForDuplicates,
out string errorText
)
Public Function ValidateSequenceName (
catalogName As String,
schemaName As String,
containingSequence As DBSequence,
nameToValidate As String,
checkForDuplicates As Boolean,
<OutAttribute> ByRef errorText As String
) As Boolean
Parameters
- catalogName
- Type: SystemString
Name of the catalog. Ignored if containingSequence isn't null. - schemaName
- Type: SystemString
Name of the schema. Ignored if containingSequence isn't null. - containingSequence
- Type: SD.LLBLGen.Pro.DBDriverCoreDBSequence
The containing sequence. Can be null if the name is for a new sequence. If not null, catalogName and
schemaName are ignored - nameToValidate
- Type: SystemString
The name to validate. - checkForDuplicates
- Type: SystemBoolean
if set to [check for duplicates]. - errorText
- Type: SystemString
The error text.
Return Value
Type:
Boolean
true if the name is a valid table name, false otherwise
Remarks If the name already exists as sequence, the name is considered valid. If the name already exists as table, view or stored procedure,
the name is considered invalid.
See Also