1、索引查找

select a.name as tabname
,h.name as idname,h.type_desc
from sys.objects as a
right join sys.indexes as h on a.object_id=h.object_id
where a.type<>'s'
order by tabname
go

2、外键查找

select a.name as tabname
,h.name as idname,h.type_desc
from sys.objects as a
right join sys.foreign_keys as h on a.object_id=h.parent_object_id
where a.type<>'s'
order by tabname
go

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2021-11-24
  • 2021-07-27
  • 2021-06-13
  • 2021-10-16
猜你喜欢
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-11-06
  • 2021-05-09
  • 2022-12-23
  • 2022-02-11
相关资源
相似解决方案