I'm trying to implement the search functionality as used on 4guysfromrolla, however I have a problem with the stored procedure... The where clause is sent in via a parameter, but what should the proper syntax inside the procedure look like? I've tried something like "FROM yyy WHERE @WhereClause", but no to previal. I get syntax errors. Thanks in advance.