1、查询下列表是否有数据
select * from sde.state_locks;
select * from sde.object_locks;
select * from sde.layer_locks;
select * from sde.table_locks;
2、有数据清空
delete from sde.state_locks;
delete from sde.object_locks;
delete from sde.layer_locks;
delete from sde.table_locks;