Solved

10774: generate a baseline

Posted on 2014-10-08
7
104 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 69

Expert Comment

by:Scott Pletcher
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
Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

 
LVL 50

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 50

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

752 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