View Single Post

   
  #6 (permalink)  
Old 03-01-2008, 02:46 PM
Tony Rogerson
 
Posts: n/a
Default Re: 2005 Stored Procedure Question - How to pass in additional LIKE conditions

> This can be compiled and optimized, avoids injection problems, will
> port easily and gives you more control over what the user is doing.


Compiled - true, although parameter sniffing is a big problem
Avoids injection - true
Port easily - true
More control over the user - don't see how

optimised - 0/10; false; wrong.

Please stop guessing; please install SQL Server and actually try some of
these answers you post.

--
Tony Rogerson, SQL Server MVP
http://sqlblogcasts.com/blogs/tonyrogerson
[Ramblings from the field from a SQL consultant]
http://sqlserverfaq.com
[UK SQL User Community]

Reply With Quote