I have a table called "report" and I am trying to reset the autoincrement value for the coming of a new year I did get some valuable advice from the forum so I made this statement;
ALTER TABLE REPORT ALTER COLUMN report_num i AUTOINC NEXTVALUE 1 STEP 1
and for all my work I got this error;
Command cannot be issued on a table with cursors in table buffering mode.
It should be simple to overcome but I am lost. I also don't think if I fix the problem it will matter as this is a primary key on the table and it would start over violating the uniqueness of the values.
Would the prefix 2004 help stop this from happening because in 2005 it would be report number 2005-1 vs 2004-1.
I am sure there is an easier way to generate year based report numbers but I have looked high and low to no avail.
ALTER TABLE REPORT ALTER COLUMN report_num i AUTOINC NEXTVALUE 1 STEP 1
and for all my work I got this error;
Command cannot be issued on a table with cursors in table buffering mode.
It should be simple to overcome but I am lost. I also don't think if I fix the problem it will matter as this is a primary key on the table and it would start over violating the uniqueness of the values.
Would the prefix 2004 help stop this from happening because in 2005 it would be report number 2005-1 vs 2004-1.
I am sure there is an easier way to generate year based report numbers but I have looked high and low to no avail.