sqlschool.gr logo

articles

Articles of SQLschool.gr Team

Server related DMVs in SQL Server

Antonios Chatzipavlis
Monday 30 July 2018

Πολλές φορές ένας DBA ψάχνει να βρει πληροφορίες για το configuration ενός instance. Από όσο έχω δει μέχρι τώρα οι περισσότεροι καταφεύγουν στο γραφικό περιβάλλον ίσως από ευκολία ή μήπως επειδή δεν γνωρίζουν άλλον τρόπο;

Στο SQL Server υπάρχουν τρεις αρκετά χρήσιμες DMV με τις οποίες μπορούμε να δούμε αρκετά χρήσιμες πληροφορίες για το configuration του instance και αυτές είναι οι παρακάτω


sys.dm_server_services

Επιστρέφει πληροφορίες για τα SQL Server, SQL Agent, FTS services όπως το startup mode του service, το status, το process id, το πότε (date & time) που αυτό έχει ξεκινήσει, το account που ξεκινάει το service αν είναι σε cluster και αν έχει ενεργοποιημένο το instant file initialization.


sys.dm_server_registry

Επιστρέφει πληροφορίες για όλα τα configuration instance settings που αποθηκεύονται στην registry, και πιστέψτε με τα λέει όλα και είναι από τις αγαπημένες μου.


sys.dm_server_memory_dumps

Επιστρέφει μια γραμμή για κάθε memory dump που έχει δημιουργηθεί αυτόματα από το SQL Server database engine. Καλό είναι να μην έχουμε αποτελέσματα από την εκτέλεση της, αλλιώς θα πρέπει να το ψάξουμε.




//antonch


Comments

31 Jul 2018 @ 11:06 AM

user-gravatar

ΛΙΑΚΟΣ ΚΟΜΝΗΝΟΣ

Μπράβο δάσκαλε!

Antonios Chatzipavlis

Antonios Chatzipavlis

Antonios Chatzipavlis is a highly experienced Data Solutions Consultant and Trainer. He has been working in the IT industry since 1988, holding various roles such as senior developer, IT Manager, Data & AI Solutions Architect and Consultant.

Since 1995, Antonios has focused on modern technologies and software development tools, primarily by Microsoft. He has specialized in Data & AI since 2000, with expertise in Microsoft Data Platform (SQL Server, Azure SQL Databases, Azure Synapse Analytics, Microsoft Fabric, Power BI, AI) and Databricks.

Antonios is also a Microsoft Certified Trainer (MCT) for over 25 years, has been recognized as a Microsoft Most Valuable Professional (MVP) in Data Platform since 2010 and he is in the Data Expert 40 Powerlist 2024 by Boussias. He is the co-founder and visionary behind XLYTiCA, a company dedicated to Data & AI solutions.

Episode

Task Flows in Microsoft Fabric

image

More Episodes...

Tip

Get Certified: Become a Fabric Data Engineer

More Tips...

Become a member

If you want to receive updates from us become a member to our community.

Connect

Explore

Learn


sqlschool.gr © 2010-2025 All rights reserved

This site uses cookies for operational and analytics purposes only. By continuing to browse this site, you agree to their use.