web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / How do I get SQL serve...
Finance forum

How do I get SQL server real time parameters such as used RAM, CPU, AXDB size, TempDB size. Is it possible to get them for both on-premise and cloud architectures?

(0) ShareShare
ReportReport
Posted on by

Hello,

I would like to find out is it possible to get some SQL server parameters or not.

The parameters I am interested in are:

- current SQL Server RAM usage and amount of free OS RAM

- current SQL Server CPU usage

- current AXDB file size

- current TempDB file size

Also, is it possible and how could I get those parameters for both on-premise and cloud architectures?

I am working with AX D365. I need to get those parameters through code, so the solution to check them by myself via Task manager and SQL Server manager unfortunately is not suitable.

Thank you in advance,

Alexander Zharkov

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    There is no product called "AX 365", it's Dynamics 365 for Finance and Operations. I will move this post from AX forum to the D365FO forum.

    You can't get such insights from within D365FO. The cloud D365FO runs on Azure SQL which is database as a service, and the underlying server setup is hidden from the consumer (this case: D365FO).

    You can see some insights in LCS Environment monitoring page.

    In on-premises version you can use normal monitoring software (not related to D365FO) to monitor the health of the Service Fabric cluster. And you can use tools of your choice to monitor the size of the database files.

  • Blue Wang Profile Picture
    on at

    Hi Alexander,

    You can refer to the performance monitoring of SQL.

    Review CPU-consuming queries

    https://docs.microsoft.com/en-us/azure/sql-database/sql-database-query-performance

    Capture performance stats: https://www.datduh.com/sql-server/2017/7/27/capture-dtu-performance-stats-in-sql-azure-database

    I hope it will help you.

  • Suggested answer
    Community Member Profile Picture
    on at
  • Suggested answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    I remember getting some properties like maxdop and db size through code for cloud environment. It was long time back , so I don't remember as well now how to get it . I will share if I get something but not everything is possible to get for cloud version . For on premise version as you have control over everything you can get it .

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans