G
Guest
Hi group, I'm building a high traffic web portal that will present a sizeable
range of search options to the user. My plan is to use dynamic parameterized
queries (as opposed to stored procedures) since you never know how many
search arguments a user will enter. I could create a stored procedure to
accept variable arguments and then assemble the queries, but this defeats one
of the prime benefits of a stored procedure - plan caching. Portal searches
are a very common feature, is using dynamic SQL with parameters the
recommended approach for a site that must perform?
Thanks for any thoughts!
range of search options to the user. My plan is to use dynamic parameterized
queries (as opposed to stored procedures) since you never know how many
search arguments a user will enter. I could create a stored procedure to
accept variable arguments and then assemble the queries, but this defeats one
of the prime benefits of a stored procedure - plan caching. Portal searches
are a very common feature, is using dynamic SQL with parameters the
recommended approach for a site that must perform?
Thanks for any thoughts!