Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

10774: generate a baseline

Posted on 2014-10-08
7
Medium Priority
?
106 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 70

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
Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 
LVL 52

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 2000 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 52

Accepted Solution

by:
Vitor Montalvão earned 2000 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
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.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

704 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