To determine if theAddsandDeletestables for the "Buildings" dataset are empty before unregistering as versioned, the GIS administrator needs to reference thesde_layerstable.
1. Purpose of the sde_layers Table
Thesde_layerstable tracks the relationship between base tables and the associated delta tables (Adds and Deletes).
For each versioned dataset, the sde_layers table contains entries linking the dataset to its corresponding A and D tables (e.g., A_ and D_).
2. Steps to Verify Adds and Deletes
Identify theObjectIDof the Buildings dataset in thesde_layerstable.
Query the Adds table (A_) and Deletes table (D_) associated with the Buildings dataset:
SELECT COUNT(*) FROM A_;
SELECT COUNT(*) FROM D_;
If both queries return 0, the Adds and Deletes tables are empty, and it is safe to unregister the dataset as versioned.
3. Why Not Other Options?
table_registry: This table tracks registered datasets but does not provide information about delta tables or their contents.
gdb_items: This table stores metadata for datasets but does not have details on delta table contents.
References from Esri Documentation and Learning Resources:
Compressing a Geodatabase—ArcGIS Pro Documentation
Delta Tables in Versioned Geodatabases
Conclusion:
The GIS administrator must query thesde_layerstable to verify the Adds and Deletes tables before unregistering the dataset as versioned.
Submit