sql stored procedures benefits
Using Parameters for SQL Server Queries and Stored Procedures. Problem. One of the benefits of SQL is the ability to write a query and use parameters to dynamically act upon the resultset. Depending on the situation, there can be benefits to parameterizing queries, but it is not always clear when or how to do this.