Home Forums SQL Server 2005 T-SQL (SS2K5) How to expand this variable for the query to work RE: How to expand this variable for the query to work

  • I did some tests. For good or for ill, I found that the XML & Table of Numbers worked better than anything else when dealing with large tables and complex queries. The function just didn't work that well. Yes, the LIKE clause always lead to table scans, so while it was sometimes faster than the function, depending on how well the function was working with the clustered index in the tables for the queries I was testing with, overall, it just didn't cut the mustard once I went to really complex queries.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning