This commit is contained in:
2023-03-30 17:51:01 +02:00
parent 4736205eb8
commit ed02942184
17 changed files with 19852 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
SELECT kc.name, SCHEMA_NAME(ot.schema_id)+'.'+ot.name AS tblName, kc.type_desc
FROM sys.key_constraints kc
JOIN sys.objects oc ON oc.object_id = kc.object_id
JOIN sys.objects ot ON ot.object_id = oc.parent_object_id
WHERE 1=1
--AND oc.name LIKE 'fk%'
ORDER BY tblName
;