• Have a look at this link http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/.

    Also please post the DDL (indexes as well), when you say 700 accounts records is that in the #accounts table ?

    Your query plan is not complete either.



    Clear Sky SQL
    My Blog[/url]