Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
SQL Server 2005 Performance Tuning
»
Metrics for stored procedure execution
Metrics for stored procedure execution
Rate Topic
Display Mode
Topic Options
Author
Message
hamsa_apj
hamsa_apj
Posted Thursday, August 23, 2012 12:06 AM
Grasshopper
Group: General Forum Members
Last Login: Monday, September 17, 2012 2:33 AM
Points: 19,
Visits: 91
Hi All,
We have a SQL server 2005 database with 2000 stored procedure and would to perform the performance tuning for SP.
As intial step, would like to take the detailed metrics related to stored procedure execution.So, that i can prioritize the stored procedures for tuning. Also, i would like to know the time taken by stored procedures, or the amount of resources used in their execution.
Please do needful. Thanks in Advance.
Post #1348873
ALZDBA
ALZDBA
Posted Thursday, August 23, 2012 12:37 AM
SSCertifiable
Group: General Forum Members
Last Login: 2 days ago @ 2:13 PM
Points: 6,866,
Visits: 8,071
Have a look at the
wonderful
scripts Glen provided for us .
SQL Server 2005 Diagnostic Information Queries by Glenn Berry
http://sqlserverperformance.wordpress.com/2012/06/12/sql-server-2005-diagnostic-information-queries-june-2012/
Johan
Jul 13
Don't drive faster than your guardian angel can fly ...
but keeping both feet on the ground won't get you anywhere
-
How to post Performance Problems
-
How to post data/code to get the best help
-
How to prevent a sore throat after hours of presenting ppt ?
"press F1 for solution", "press
shift
+F1 for urgent solution"
Need a bit of Powershell? How about
this
Who am I ?
Sometimes this is me
but
most of the time this is me
Post #1348881
sandeep rawat
sandeep rawat
Posted Thursday, August 23, 2012 12:47 AM
Say Hey Kid
Group: General Forum Members
Last Login: Thursday, June 13, 2013 5:06 AM
Points: 688,
Visits: 305
please refer below link
http://www.simple-talk.com/sql/performance/how-to-identify-slow-running-queries-with-sql-profiler/
Post #1348884
hamsa_apj
hamsa_apj
Posted Thursday, August 23, 2012 3:06 AM
Grasshopper
Group: General Forum Members
Last Login: Monday, September 17, 2012 2:33 AM
Points: 19,
Visits: 91
Hi All,
Thanks for your response. As a developer, i would like get the metrics for stored procedure execution.
SQL profiler and other stuff mentioned above replies are not accessible for developers.
Post #1348960
ALZDBA
ALZDBA
Posted Thursday, August 23, 2012 4:07 AM
SSCertifiable
Group: General Forum Members
Last Login: 2 days ago @ 2:13 PM
Points: 6,866,
Visits: 8,071
You'll need to be granted
VIEW SERVER STATE
and
VIEW DATABASE STATE
to be able to use the mentioned DMO in Glens script.
We grant these privileges to our devs (dev and qa instances) , so they are able to have a look at performance themselves.
In many cases Sr dev also have these privileges on prod instances.
(because they have been informed some DMO may hurt performance)
If you don't have these privileges, ask your dba/sysadmin to run the script for you and provide the results.
Johan
Jul 13
Don't drive faster than your guardian angel can fly ...
but keeping both feet on the ground won't get you anywhere
-
How to post Performance Problems
-
How to post data/code to get the best help
-
How to prevent a sore throat after hours of presenting ppt ?
"press F1 for solution", "press
shift
+F1 for urgent solution"
Need a bit of Powershell? How about
this
Who am I ?
Sometimes this is me
but
most of the time this is me
Post #1348988
Grant Fritchey
Grant Fritchey
Posted Monday, August 27, 2012 4:31 AM
SSChampion
Group: General Forum Members
Last Login: Yesterday @ 9:49 AM
Points: 13,436,
Visits: 25,281
In order to collect a meaningful set of data, you're going to need access to the server. You can look at the information in dynamic management objects (DMO) such as sys.dm_exec_query_stats which will give you an aggregate of performance metrics for all queries currently in cache. But it requires advanced permissions. Same thing with using a server-side trace to collect the data (don't point Profiler at a production server). To gather these metrics you either need permissions from the administrators or you need to work with them to get the metrics.
----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of:
SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans
Product Evangelist for
Red Gate Software
Post #1350303
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.