retrieve constraint name for a table
hi
i need to know can i in vb or sql, retrieve the name of a constraint for a table.
i need it because i want to delete in table the key, so constraints.
alter table table1 drop constraint constraintname
the problem that i need to retrieve this "constraintname"
i know how to retrieve specific data on table :
FieldInfo(0) = tdSource.Fields(X).Name
FieldInfo(1) = tdSource.Fields(X).Type
FieldInfo(2) = tdSource.Fields(X).Size
FieldInfo(3) = tdSource.Fields(X).Attributes
how can i retrieve constraint name?
hi
i need to know can i in vb or sql, retrieve the name of a constraint for a table.
i need it because i want to delete in table the key, so constraints.
alter table table1 drop constraint constraintname
the problem that i need to retrieve this "constraintname"
i know how to retrieve specific data on table :
FieldInfo(0) = tdSource.Fields(X).Name
FieldInfo(1) = tdSource.Fields(X).Type
FieldInfo(2) = tdSource.Fields(X).Size
FieldInfo(3) = tdSource.Fields(X).Attributes
how can i retrieve constraint name?