concept query parameter in category sql

This is an excerpt from Manning's book SQL Server MVP Deep Dives.
Note that the parameter length is seven characters exactly (the size of the string). If I replaced this with "where a.city = "Portland" " the result would be a parameterized query with a different string length (nvarchar(8)) for @p0. This pollutes the plan cache with one query for each different string size, when it’s only necessary to use the field size of the city field (20 in this case). SQL Server’s built-in auto-parameterization always uses the string length of 8000 characters or 4000 Unicode characters, and using one string size in the query parameter is preferable to one different query per string size. Both LINQ to SQL and the EF have addressed the parameter length issue in the upcoming .NET 4.0 release by choosing a default length when none is specified, but in the meantime, using these frameworks means making query plan reuse compromises.
Filters can be handy, but whenever possible, stay away from using them. Filters require RS to first retrieve all of the data, and then RS applies the filter. Query parameters follow the opposite processing path: query parameters let the database engine first apply the parameters to the data, then RS performs rendering tasks only on the subset of data specified by the parameters.