How to Use 'Like' with a parameter
问题 I want to search for a number embedded in a string in a field in our log table using a parameter. select * from vwLogs where log_time >'02/24/2009' and message like ('%2009022508241446%') I know how to use parameters when the where clause is an equals sign but not sure how to do it with 'Like' this doesn't seem right WHERE message like ('%@ErrorMessage%') I just tried this and it didn't work. The only thing new is the message search part protected void btnRunQuery_Click(object sender,