sequence lazarus / 16-Databases ---------------------------------------------------------------------- Medhome · 2021-06-29 10:37 Hi all, I want to decrease a sequence generator of dataset ( PK FIELD) after doing a rollback. I am u FireBird DataBase. Med. ---------------------------------------------------------------------- korba812 · 2021-06-29 10:50 I advise against it. There is no guarantee that generator has not been altered by another connection. ---------------------------------------------------------------------- Medhome · 2021-06-29 10:53 I agree with you .I will abandon this idea and redefine PK as bigint ---------------------------------------------------------------------- ttomas · 2021-06-29 10:59 SELECT GEN_ID(GENERATOR_NAME, -1) FROM RDB$DATABASE Not recommended in multi user, because Set/Get generators is out of transaction in FirebirdSQL. Only in single user environment.