#Mysql server Sequence

Is there any way to trigger db sequence from expression rule , My requirement is like I will pass sequence name and the rule should return
next value of sequence , am using sql server.
My db script is:
 CREATE SEQUENCE [dbo].[testSequence2]
 AS [bigint]
 START WITH 5
 INCREMENT BY 2
 MINVALUE -9223372036854775808
 MAXVALUE 9223372036854775807
 CACHE
GO

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to venkateshs329
    what i understood from your explanation is you want to insert the PrimaryKey value from your end rather than auto Generate, that too sequentially, like something-1, something-2, something-3 etc.., i am not sure, are you looking for this or something else, but if this is your requirement, then create a queryentity to fetch totalcount and create a rule and append the totalcount with the character, and also make your CDT PK of type Text. again i am not sure, whether you are looking for this or something else
Children