SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Stored Procedure Testing
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Srinika
Flowing Fount of Yak Knowledge

Sri Lanka
1378 Posts

Posted - 03/27/2012 :  11:40:32  Show Profile  Reply with Quote
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

India
47040 Posts

Posted - 03/27/2012 :  12:17:47  Show Profile  Reply with Quote
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 - 03/27/2012 :  12:59:20  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

Sri Lanka
1378 Posts

Posted - 03/27/2012 :  22:39:50  Show Profile  Reply with Quote
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

India
47040 Posts

Posted - 03/27/2012 :  22:42:37  Show Profile  Reply with Quote
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)

Singapore
16746 Posts

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


KH
Time is always against us

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000