I am trying to create a stored procedure, passing 4 parameters (@name, @account_type, @city and @state) from an asp page. I need to somehow dynamically create the select statement, which will vary, based on values passed for each specific query, as my users may want to search by 1 or 2, but not all 4 parameters. One user may be looking for all Smiths in AR, for example. Another may want all corporate account_type records in Saint Louis. The other fields would be left blank. I'm new at SQL, and would appreciate any suggestions. Thanks.