public SequenceExists ( string name ) : bool | ||
name | string | Name of the sequence to check for. |
return | bool |
public virtual bool SequenceExists(string name)
{
int count = SqlConnectionUtilities.XSafeIntQuery(_connDesc,
"SELECT COUNT(*) FROM information_schema.sequences where sequence_name = '" +
name.ToLower() + "'", null);
return count == 0;
}