I had a similar experience with telephone number selection, using the “LIKE” statement didn’t work very well. I actually filled up all available disk space on the server because MSDB...
In my initial query I used a join as part of the cursor, all joined fields had indexes on, doing that took even longer. My posted example was an improvement...