I am modifying a sql server 2005 stored procedure slightly for performance, and I would like to quickly make sure the old stored proc and the new one return the exact same r
create table #OldProcResults ( ) create table #NewProcResults ( ) insert into #OldProcResults exec MyOldProc insert into #NewProcResults exec MyNewProc
then use Jabs' answer to compare the two tables.