SQL Server compare results of two queries that should be identical

前端 未结 6 2002
面向向阳花
面向向阳花 2020-12-24 11:14

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

6条回答
  •  粉色の甜心
    2020-12-24 11:52

    create two temp tables, one for each procedure. run the procedure to insert rows into the appropriate table.

    then select * from one MINUS select * from the other and visa-versa

提交回复
热议问题