-- 양쪽 데이터베이스에

-- 제약 조건이 제대로 같은지 수량도 검사


select object_name(parent_object_id), count(name) from sys.objects
where type= 'D'
group by object_name(parent_object_id)
order by 1


select count(*) from sys.objects where type = 'D'


-- 인덱스 검사

-- 인덱스 한번에 쫙 검사


select object_name(object_id), count(*) cnt from sys.indexes
group by object_name(object_id)


select count(*) from sys.indexes