How can I temporarily disable all constraints in a Table in Firebird 2.1?

Fabio Gomes picture Fabio Gomes · Jun 30, 2009 · Viewed 7.9k times · Source

I want to disable all Foreign key constraints and re-enable them after, is there some way to do that?

I know that SQLServer allows that, but what about Firebird?

Answer

Douglas Tosi picture Douglas Tosi · Jul 1, 2009

AFAICT foreign keys can't be disabled in Firebird up to 2.1.
You'd have to drop and recreate them.
There's a similar thread on Devshed.