SQL - Query with large number (>500) of OR predicates and/or large number (>500) of parameters crashes server
A SQL query with a large number (>500) of OR predicates and/or a large number (>500) of parameters was crashing the server. The logic has been changed to correct this.