Rule Definition
When a search criteria using LIKE operator starts with '%', '[...]', '_', the SQL Optimizer will be forced to do a table/index scan when executing your query.
Remediation
Check the statement and if so, remove the wildcard so the string you are searching for begins with a valid character.
Violation Code Sample
SELECT * FROM [dbo].[Child]
WHERE VarcharDataColumn LIKE '%EST5804%'
Fixed Code Sample
SELECT * FROM [dbo].[Child]
WHERE VarcharDataColumn LIKE 'TEST5804%'
Related Technologies
Technical Criterion
Efficiency - SQL and Data Handling Performance
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.