I am trying to filter items with a stored procedure using like. The column is a varchar(15). The items I am trying to filter have square brackets in the name.
For ex
Let's say you want to match the literal its[brac]et.
its[brac]et
You don't need to escape the ] as it has special meaning only when it is paired with [.
]
[
Therefore escaping [ suffices to solve the problem. You can escape [ by replacing it with [[].
[[]