I'm enhancing a SP that is using 4 or 5 temp tables to store data. At the end a select query is done joining the temp tables. I wanted to see if the performance of the SP would improve if I used table variables with primary keys. What would be a good way to test the performance between the two?
I was thinking of doing an execution plan and seeing the time it takes to load the data into the tables and then on the select query.
Thanks for your help!
I was thinking of doing an execution plan and seeing the time it takes to load the data into the tables and then on the select query.
Thanks for your help!