I have an primary key Id (int) field which I have identity disabled. We have removed the identity setting to make it easier to perform data synchronization scripts between our development and production servers (we don't have permissions to perform identity inserts on the production server).
When we insert new records via code, we would like to do something like the following
lock table
declare newId as int
select newId = max(Id) + 1 from table
insert into table values (newId, ...)
release lock
Is something like this possible or is there some built in feature to llblgen which will have llblgen handle the identity part?