Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

performance monitors on the SQL 2005

 
   Database Forums (Home) -> Server RSS
Next:  Publish scenario - how can this work?  
Author Message
Daniel

External


Since: Apr 12, 2007
Posts: 36



(Msg. 1) Posted: Tue Dec 04, 2007 2:35 pm
Post subject: performance monitors on the SQL 2005
Archived from groups: microsoft>public>sqlserver>server (more info?)

Looking to see if there is anyway to enable or capture or if already
available query performance stats on SQL2005

we are having issues with one of our databases.. and the programmers say
everything is ok.. ( they are outside verndors)

So is there anything we can get from SQL2005 to show us the times the
performance was low or high.. and such...

--
ASP, SQL2005, DW8 VBScript

 >> Stay informed about: performance monitors on the SQL 2005 
Back to top
Login to vote
TheSQLGuru

External


Since: Mar 23, 2007
Posts: 261



(Msg. 2) Posted: Tue Dec 04, 2007 2:45 pm
Post subject: Re: performance monitors on the SQL 2005 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Take a look at various wait stats counters in the Dynamic Management Views
exposed in SQL 2005. See BOL. Microsoft has a nice document on performance
analysis using waits and queues. Profiler can provide information on
execution times, cpu and i/o usage of executed queries.

Honestly though, the best way for you to prove if the issues are with the
application code or the database is to hire a pro for a quick performance
review.

--
Kevin G. Boles
TheSQLGuru
Indicium Resources, Inc.


"Daniel" wrote in message

> Looking to see if there is anyway to enable or capture or if already
> available query performance stats on SQL2005
>
> we are having issues with one of our databases.. and the programmers say
> everything is ok.. ( they are outside verndors)
>
> So is there anything we can get from SQL2005 to show us the times the
> performance was low or high.. and such...
>
> --
> ASP, SQL2005, DW8 VBScript
>

 >> Stay informed about: performance monitors on the SQL 2005 
Back to top
Login to vote
jason

External


Since: Nov 20, 2007
Posts: 18



(Msg. 3) Posted: Tue Dec 04, 2007 10:47 pm
Post subject: Re: performance monitors on the SQL 2005 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You can gleen this info from sys.dm_exec_query_stats with some limitations.

select total_worker_time/execution_count as AvgCPU
, total_elapsed_time/execution_count as AvgDuration
, (total_logical_reads+total_physical_reads)/execution_count as AvgReads
, execution_count
, substring(st.text, (qs.statement_start_offset/2)+1 , ((case
qs.statement_end_offset when -1 then datalength(st.text) else
qs.statement_end_offset end - qs.statement_start_offset)/2) + 1) as txt
, query_plan
from sys.dm_exec_query_stats as qs
cross apply sys.dm_exec_sql_text(qs.sql_handle) as st
cross apply sys.dm_exec_query_plan (qs.plan_handle) as qp
order by 2 desc


--
Jason Massie
www: http://statisticsio.com
rss: http://statisticsio.com/Home/tabid/36/rssid/1/Default.aspx


"Daniel" wrote in message

> Looking to see if there is anyway to enable or capture or if already
> available query performance stats on SQL2005
>
> we are having issues with one of our databases.. and the programmers say
> everything is ok.. ( they are outside verndors)
>
> So is there anything we can get from SQL2005 to show us the times the
> performance was low or high.. and such...
>
> --
> ASP, SQL2005, DW8 VBScript
>
 >> Stay informed about: performance monitors on the SQL 2005 
Back to top
Login to vote
Uri Dimant

External


Since: Aug 24, 2003
Posts: 739



(Msg. 4) Posted: Wed Dec 05, 2007 2:58 am
Post subject: Re: performance monitors on the SQL 2005 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Daniel
http://www.sql-server-performance.com/articles/per/sys_dm_os_performan...counter


"Daniel" wrote in message

> Looking to see if there is anyway to enable or capture or if already
> available query performance stats on SQL2005
>
> we are having issues with one of our databases.. and the programmers say
> everything is ok.. ( they are outside verndors)
>
> So is there anything we can get from SQL2005 to show us the times the
> performance was low or high.. and such...
>
> --
> ASP, SQL2005, DW8 VBScript
>
 >> Stay informed about: performance monitors on the SQL 2005 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Slow Performance in SQL 2005 - Hi, We have just shifted one of our databases to a new instance of SQL 2005. There is also an instance of SQL 2000 running in the same server. There is a VB6 application that runs a batch process to insert about 4.5 million records everyday in this SQL...

sql 2005 Developper edition VS Express : huge difference i.. - hi, i'm developping against a developper edition of sql 2005 now 90% of the customers run this app against the express edition the app is slow with those clients what i see is that a trigger on a specific table that copies the old and new values to..

performance problem - sql server 2005 standrard, 4gGB ram, 4 processors, win 2003 buffer cache hit ratio (BCHR) going from 97% down to 94%, page life expectancy (PLE) staying between 3 and 7!?? sql memory default configuration (automanage), system free memory cca 1.7GB. q...

Performance Tracing - Hello All I have a work in progress routine for tracing performance on multi-step sql batches or stored procedures, it uses traces to list lines of code executed, executions counts, total trace counters in a format for ease of use in pinpointing the....

Performance Monitoring - Hi All, I am looking to monitor performance of our SQL 2005 Ent servers. I want to monitor disk i/o, cpu, paging, sessions, locks, etc. etc. I am looking at 2 third party products; Idera Diagnostic Manager and Spotlight. Has any used or had..
   Database Forums (Home) -> Server All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]