June 10, 2008 at 8:17 am
Hi guys. I'm trying to compare the results from various stored procedures. Various stored procedures in our database got redone (refactored), and I want to see if they still pull back the same data.
Are there any programs out there that do this? Compare result sets from stored procedures? Any help is appreciated. Thanks!
June 10, 2008 at 8:39 am
doubtless the RedGate fraternity will have some clever and witty solution to all parameter values
- this is just the simple version from the coal-face
you can use SQLCMD plus FC or WINDIFF or WDCMX
SQLCMD -S mysvr -d mydb -E -Q "exec usp_OLD @p1=123" -o old.txt
SQLCMD -S mysvr -d mydb -E -Q "exec usp_NEW @p1=123" -o new.txt
FC old.txt new.txt
where you can plug-in your sproc names and sample calling values as appropriate
or use C:\Program Files\Support Tools\WINDIFF.exe if you prefer GUI, downloadable from
or (better?)
http://www.codeproject.com/KB/shell/wdcmx.aspx
HTH
Dick
June 6, 2011 at 1:35 pm
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply