• Wouldn't you be better off using temporary tables rather than table variables, i was under the impression I should only use table variables for very small (500 records) amounts of data?

    Sorry I have read more replies and see that table variables were being used as examples and other replies have covered the table variables angle

    Chris