May 14, 2010 at 12:47 am
I made a Stored Procedure as Process with Table Index but when I Executed it on my Local PC it takes 50 Second for 27000 Records Process but while execute on Database Server it takes 18 Minutes. why ?
can anybody help me .
Thanks in Advance.
May 14, 2010 at 1:03 am
system configuration?
kshitij kumar
kshitij@krayknot.com
www.krayknot.com
May 14, 2010 at 1:29 am
Please see this article
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
May 14, 2010 at 2:40 am
Check the indexes and their fragmentation levels. if they are identical then there should not me more difference.
Nag
Nag
------------------------------------------------
How to get the best help on a forum
http://www.sqlservercentral.com/articles/Best+Practices/61537
May 14, 2010 at 3:06 am
Nagesh S-432384 (5/14/2010)
Check the indexes and their fragmentation levels. if they are identical then there should not me more difference.Nag
Could be a hundred other things. Need DDL and execution plans to provide any advice.
May 14, 2010 at 3:30 am
imran_ghainsh (5/14/2010)
I made a Stored Procedure as Process with Table Index but when I Executed it on my Local PC it takes 50 Second for 27000 Records Process but while execute on Database Server it takes 18 Minutes. why ?can anybody help me .
Thanks in Advance.
You need to optimize ur stored procedure as 50 seconds is longer.
check the logic where you are using in join or in where condition.
Please see the execution plan for that and find the fragmentation for the indexs ,
and do the necessary step to reorganize/rebuild indexs.
Update statistics as well check the database configuration.
May 14, 2010 at 3:57 am
Dear but I have Made already Index on Database Server.
Same structure is working Fine on Local PC except Database Server.
Thanks
May 14, 2010 at 4:07 am
As Dave Ballantyne said, if you can provide sql query and execution plans from both the servers then it will be helpful provide any advice.
Nag
Nag
------------------------------------------------
How to get the best help on a forum
http://www.sqlservercentral.com/articles/Best+Practices/61537
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply