Little SQL Server Tricks: Escape _ in LIKE Queries
If you search for a value with an _ in the name, you learn something new about SQL Server, but end up with a result that does not match your expectation:
If we run this query, we do not get back everything with an _ in it. Instead, we get back everything. How is that possible? The _ is a placeholder that stands for any character, what gives us back every row that has any character anywhere in the column we search for. That is most likely not what we try to do.
