Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 755 Bytes

File metadata and controls

32 lines (22 loc) · 755 Bytes

SQL Server Rule: SRP0002

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

Rule Information

Id SRP0002
Friendly Name Unanchored string pattern
Category Performance
Ignorable true
Applicable Types Procedure
Scalar Function
Table Valued Function
View

Description

Try to avoid using patterns that start with '%' when using the LIKE keyword if possible. (Sargable)

Summary

Avoid using patterns that start with '%' with the LIKE keyword (Sargeable)