I've met the following issue. We've created some sequences with this code:
CREATE SEQUENCE SQ_TR_HQPROJECT MINVALUE 13 MAXVALUE
START WITH 13 INCREMENT BY 1
Right, while using TOAD or SQLPlus the sequence seems to work properly:
SQL> select SQ_TR_HQPROJECT.nextval from dual;But when we implement in our program the increment is by 2 not by 1:
NEXTVAL
----------
21
SQL> r
1* select SQ_TR_HQPROJECT.nextval from dual
NEXTVAL
----------
22
Const SqlCodFiltro As String = "SELECT SQ_TR_HQPROJECT.NEXTVAL FROM dual"The first time we run the procedure returns 23 and the second one 25.
On Error GoTo Error
Dim rsServicios As Object
Set rsServicios = conexOracleSIGEL.CreateDynaset(SqlCodFiltro, 0&)
Do While Not rsServicios.EOF
IdFiltro = rsServicios(0)
rsServicios.MoveNext
gCodFiltroEjecutado = IdFiltro
Loop
Can anyone hepl us with this problem.
Thanks in advance.

