SyntaxFix
Write A Post
Hire A Developer
Questions
It should be:
... WHERE LastName LIKE '%' + @LastName + '%';
Instead of:
... WHERE LastName LIKE '%@LastName%'