You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to increase database Sequence via Agent in Cloud?

Accepted answer
edited Apr 29, 2021 1:30AM in Transportation Management 3 comments


Hi all,

Certain tables are designed with a sequence as Primary Key, e.g. In table GTM_TR_PROD_CLASSIFICATION, GTM_TR_PROD_CLASSIFICATION_GID is the primary key and is apparently a sequence. 

In certain use cases, we have to use Direct SQL Update in an agent to insert records in this table. But if we do that, the sequence has to keep up with the latest value. Any advice to reset the sequence to latest value?

Of course we can use a string like "A0001" to have our own set of GTM_TR_PROD_CLASSIFICATION_GID. But I am not sure if that will break any logic within system.

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!