Solved

10774: generate a baseline

Posted on 2014-10-08
7
97 Views
Last Modified: 2014-10-13
Hi Experts:
I need to generate a baseline before initiating corrective action on some querys on the database. I need some reference to compare and see how we've improved.

I need to consider the following aspects:
Measure the current consumption of resources by SQL Server.
Measuring how various workload of SQL Server in time.
Monitor peak consumption to avoid rework.

It is possible to generate the baseline, running SQL dynamic view "sys.dm_"
0
Comment
Question by:enrique_aeo
  • 3
  • 2
7 Comments
 
LVL 69

Expert Comment

by:ScottPletcher
ID: 40368909
Yes.
0
 

Author Comment

by:enrique_aeo
ID: 40368914
Example Please
0
 

Author Comment

by:enrique_aeo
ID: 40372210
Please experts:

Any URL where it appears as these views can work together
sys.dm_exec_sessions
sys.dm_os_schedulers
sys.dm_tran_locks
sys.dm_io_virtual_file_stats
sys.dm_db_index_physical_stats
sys.dm_os_performance_counters
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 45

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 500 total points
ID: 40376503
What about saving Performance Counters for a working period and set that as baseline?
In the future you can compare it with actual Performance Counters.
0
 

Author Comment

by:enrique_aeo
ID: 40376750
can you explain me with this dinamyc view
sys.dm_exec_sessions
sys.dm_os_schedulers
sys.dm_tran_locks
sys.dm_io_virtual_file_stats
sys.dm_db_index_physical_stats
sys.dm_os_performance_counters
0
 
LVL 45

Accepted Solution

by:
Vitor Montalvão earned 500 total points
ID: 40376836
I was talking about Performance Counters but I can see you have already your mind set on those dmv's and for that you can get a snapshot running the following command:
SELECT GETDATE(), * FROM sys.dm_os_performance_counters
SELECT GETDATE(), * FROM sys.dm_db_index_physical_stats(null, null, null, null, null)
SELECT GETDATE(), * FROM sys.dm_io_virtual_file_stats(null, null)
SELECT GETDATE(), * FROM sys.dm_os_schedulers
SELECT GETDATE(), * FROM sys.dm_tran_locks
SELECT GETDATE(), * FROM sys.dm_exec_sessions

Open in new window

But don't forget this is only a snapshot that's why I added the GETDATE() so you can record the date and time for each snapshot that you want to take. You can even create a job and schedule it to run every 15 minutes. It's just an example and you need to set the schedule period as you need.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now