Skip to content

Commit a611003

Browse files
authored
Update Broken_Relationships.sql
1 parent 5eba40f commit a611003

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

SQL Queries/OperationsManager/Broken_Relationships.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---Check for Broken Relationship
2-
Use OperationsManager
32
SELECT R.[RelationshipId],
43
RT.[RelationshipTypeId],
54
S.[FullName] as SourceName,
@@ -12,4 +11,4 @@ FROM dbo.[Relationship] R with (nolock)
1211
INNER JOIN dbo.[BaseManagedEntity] T with (nolock)
1312
ON T.[BaseManagedEntityId] = R.[TargetEntityId]
1413
WHERE R.[IsDeleted] = 0
15-
AND (S.[IsDeleted] = 1 OR T.[IsDeleted] = 1)
14+
AND (S.[IsDeleted] = 1 OR T.[IsDeleted] = 1)

0 commit comments

Comments
 (0)