Ok, using SQL Server 2008. On my web page I have a textbox with jQuery-UI AutoComplete hooked up.
Now I need a stored procedure to search across all columns of a single
Edit: Use a UNION to join separate queries
SELECT productname FROM foo WHERE productname LIKE '%myinput%' UNION SELECT productnumber FROM foo WHERE productnumber LIKE '%myinput%' UNION ...
There is no automatic way to scan all columns unless you use dynamic SQL