TysonLPrice
Programmer
Hi everyone,
First I like to say thanks to all the contributors of this forum. I come here every morning to read the posts and feel like I've learned a lot from all of you.
I'm trying to use some of the things I've learned here to optimize existing stored procedures I inherited. I took a bunch of joins and cursors out of one and need to compare the performance between the two. I have them copied into Query Analyzer right now. I'm comparing them like this:
Get the start time:
declare @testtime as varchar(30)
set @Testtime = convert(varchar(30), getdate(), 126)
print @testtime
Procedure processing:
Get the end time:
set @Testtime = convert(varchar(30), getdate(), 126)
print @testtime
The format of @Testtime is 2004-10-13T07:22:59.623
Assuming the processing results are the same is this a valid test? It looks like I took a second off so far. Small potatoes I know but I'm working with a subset of production.
Are there better ways to compare results?
Thanks!
First I like to say thanks to all the contributors of this forum. I come here every morning to read the posts and feel like I've learned a lot from all of you.
I'm trying to use some of the things I've learned here to optimize existing stored procedures I inherited. I took a bunch of joins and cursors out of one and need to compare the performance between the two. I have them copied into Query Analyzer right now. I'm comparing them like this:
Get the start time:
declare @testtime as varchar(30)
set @Testtime = convert(varchar(30), getdate(), 126)
print @testtime
Procedure processing:
Get the end time:
set @Testtime = convert(varchar(30), getdate(), 126)
print @testtime
The format of @Testtime is 2004-10-13T07:22:59.623
Assuming the processing results are the same is this a valid test? It looks like I took a second off so far. Small potatoes I know but I'm working with a subset of production.
Are there better ways to compare results?
Thanks!