Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 669 Bytes

SRP0023.md

File metadata and controls

31 lines (21 loc) · 669 Bytes

SQL Server Rule: SRP0023

Assembly SqlServer.Rules.dll
Namespace SqlServer.Rules.Performance
Class UseExistenceInsteadOfCountRule

Rule Information

Id SRP0023
Friendly Name Enumerating for existence check
Category Performance
Ignorable true
Applicable Types Procedure
Scalar Function
Table Valued Function

Description

When checking for existence use EXISTS instead of COUNT

Summary

Consider using EXISTS instead of COUNT