Hi Adam,
<snip>
In this case, I need to run a stored procedure to get the right OBJECTID from the next row id.
<snip>
Example SQL code:
INSERT INTO GIS.BUILDINGS
(objectid, fid, type, subtype, shape)
VALUES
(sde.version_user_ddl.next_row_id('GIS', 40),
18907, 'BLD', 'RES', sde.st_geometry
('polygon (( 2219520.56768649 387051.66985716,
2219525.34823696 387079.52399077, 2219536.03133855 387077.71905252,
2219539.05578917 387095.47546386, 2219528.17754562 387097.32910505,
2219528.61661291 387099.81695550, 2219489.00622816 387106.54876471,
2219480.81097279 387058.40167483, 2219520.56768649 387051.66985716))',
17)
);
As long as you are using ArcGIS software dealing with the SDE feature class, you don't need to worry about the gaps between ObjectIDs.
For your reference, here are some help documents relate with this topic.
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/What_is_an_objectID/006z00000009000000...
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Workflow_Using_SQL_with_existing_featu...
-Ben
exec sde.version_user_ddl.next_row_id('SDE', 50);
Error starting at line 13 in command: exec sde.version_user_ddl.next_row_id('SDE', 50) Error report: ORA-06550: line 1, column 7: PLS-00221: 'NEXT_ROW_ID' is not a procedure or is undefined ORA-06550: line 1, column 7: PL/SQL: Statement ignored 06550. 00000 - "line %s, column %s:\n%s" *Cause: Usually a PL/SQL compilation error. *Action: