Click or drag to resize

DatabaseMetaData.ValidateSequenceName Method

Validates the name of the sequence.

Namespace:  SD.LLBLGen.Pro.ApplicationCore.MetaData
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.7.0.0 (5.7.0)
Syntax
public bool ValidateSequenceName(
	string catalogName,
	string schemaName,
	DBSequence containingSequence,
	string nameToValidate,
	bool checkForDuplicates,
	out string errorText
)

Parameters

catalogName
Type: System.String
Name of the catalog. Ignored if containingSequence isn't null.
schemaName
Type: System.String
Name of the schema. Ignored if containingSequence isn't null.
containingSequence
Type: SD.LLBLGen.Pro.DBDriverCore.DBSequence
The containing sequence. Can be null if the name is for a new sequence. If not null, catalogName and schemaName are ignored
nameToValidate
Type: System.String
The name to validate.
checkForDuplicates
Type: System.Boolean
if set to true [check for duplicates].
errorText
Type: System.String
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