Click here to Skip to main content
15,896,540 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
in my sql server i am running a stored procedure , its shows result in 40 sec its has multiple join and sub queries. after running this,SQL server Windows NT service taking 100% CPU than my start alarming.
although i have given 100 gb memory to sql server,however its taking 100% cup
kindly guide me what i have to do to get rid of this issue.

What I have tried:

Hi,
in my sql server i am running a stored procedure , its shows result in 40 sec its has multiple join and sub queries. after running this,SQL server Windows NT service taking 100% CPU than my start alarming.
although i have given 100 gb memory to sql server,however its taking 100% cup
kindly guide me what i have to do to get rid of this issue.
Posted
Updated 26-Jun-19 1:36am

1 solution

How do you expect us to do that, with no access to your SP or your data?

We can't help with no information, and even with your SP we probably couldn't help either as it's almost certain that you'd need your data available in order to profile the SP in any detail - and any SP which takes 40 seconds is processing a lot of data!

So start by profiling what you are doing: progfiling stored procedures and memory usage - Google Search[^] and see where the bottleneck is.

Sorry, but we can't do that for you!
 
Share this answer
 
Comments
Noman Suleman 26-Jun-19 8:00am    
actually i unable find what is main reason for its query issue or sql server tuning issue
Dave Kreskowiak 26-Jun-19 10:21am    
and with the complete lack of any useful information from you, how do you expect anyone else to be able to troubleshoot it?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900