> 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]