Stored procedure performance

Last post 10-16-2008 7:18 AM by rohit2900. 2 replies.
Page 1 of 1 (3 items)
Active Topics My Discussions Unanswered Sort Posts: Previous Next
  • 10-10-2008 7:35 AM

    Stored procedure performance

    Hi there.  I have a question regarding troubleshooting some inconsistencies with a stored procedure that we have.  The stored procedure has been scheduled as a scheduled task within the Windows environment.  It's scheduled to run every 15 minutes.  When it is run as a stored procedure it sometimes takes seconds, other times minutes and often we have to kill the database process.  How would I be able to troubleshoot what could be causing this?

    Let me deal... MY WAY!
  • 10-10-2008 2:24 PM In reply to

    Re: Stored procedure performance

    Can you post the code to help finding the problem

    It may be locks or blocks due to other sp or applications that access the same tabls/views which is used by the stored procedure.

    Use Sql activity monitor to  catch these actions.

    Try to know what is others are running during execution of that sp 

    Review sql log  events for something strange.

     


    MCSE , MCITP (SQL 2005 Administration & Development), MCTS, MCPD
  • 10-16-2008 7:18 AM In reply to

    Re: Stored procedure performance

     We are having a proc as or not it normally returns around 15K records, and front hand app is .net and whenever the result set is more than 10 K it throwing some exceptions.....Now one of our developer wants me to modify the proc in such a way as the proc should return the data in a subset of the whole data and they will show each subset in different pages with indexes on them and

    It is something like if user is on page 1 then it should show 1 to 2000 records and when he clicked 5th page then it should show 8001 to 10000 records....I'm not sure if we can handle it inside the procedure.

    Do you guys have any IDEA?

    Rohit Paliwal
    MCDBA
    View Rohit Paliwal's profile on LinkedIn
Page 1 of 1 (3 items)
Active Topics   My Discussions    Unanswered Posts


© 2000 - 2007 vDerivatives Limited All Rights Reserved.