Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Stored Procedure Testing

Author  Topic 

Srinika
Master Smack Fu Yak Hacker

1378 Posts

Posted - 2012-03-27 : 11:40:32
I need to modify some stored procedures, for that to be more efficient and concise.

I need to know, is there any way to check the output of old SP & new SP, for different parameters, to see the differences?

I can generate the parameters & the SQL to be executed in a script, but not sure of a way to test the output.

If no straight forward method, let me know if there is any tool.


Srinika

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-03-27 : 12:17:47
why not populate the resultset onto excel template in two different sheets one old and other new and compare between them using excel formula/macro?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2012-03-27 : 12:59:20
I don't know what you mean by "Test the output"



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page

Srinika
Master Smack Fu Yak Hacker

1378 Posts

Posted - 2012-03-27 : 22:39:50
To Visakh,

It is not just 1 results set. It may be about 200,000 ~ 300,000 records ( about 5000 records for each parameter set)
It is practically impossible huge load of data :(

To X002548,
The SP returns a results set in the end. That is the output. I need to check whether I get the same output for all parameters, after the change as well.


Srinika
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-03-27 : 22:42:37
quote:
Originally posted by Srinika

To Visakh,

It is not just 1 results set. It may be about 200,000 ~ 300,000 records ( about 5000 records for each parameter set)
It is practically impossible huge load of data :(

To X002548,
The SP returns a results set in the end. That is the output. I need to check whether I get the same output for all parameters, after the change as well.


Srinika



why cant you load it to seperate sheets in excel and do the comparison?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2012-03-27 : 22:43:16
output the result into 2 separate temp tables for old SP and new SP and compare it using query


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -