public bool DropSequence(ObjectName sequenceName)
{
// If the Sequence or SequenceInfo tables don't exist then
// we can't create the sequence sequence
if (!Transaction.ObjectExists(SequenceTableName) ||
!Transaction.ObjectExists(SequenceInfoTableName)) {
throw new Exception("System sequence tables do not exist.");
}
try {
// Remove the table sequence (delete SEQUENCE_INFO and SEQUENCE entry)
return RemoveNativeTableSequence(sequenceName);
} finally {
seqCache.Clear();
}
}