Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to get hardware related metrics of SQL Server through query ?

$
0
0

Hi Folks,

               I am newbie to the SQL Server programming. I also follow this forum only now. I am not sure if these kind of question had been asked in the past. Let me furnish you more detail about my query. I do like to get few details regarding the SQL server. I do need the following details to get the information about it through query

  1. SQL Server Installation directory
  2. No. Of CPU(as i read SQL Server standard support 4 cpu and Enterprise support 32 CPU)
  3. CPU Speed of the SQL Server installed machine
  4. Disk Storage details
  5. Operating system on which the SQL Server is installed
  6. Location of the swap file of SQL Server
  7. TempDB directory path
  8. System database directory path
  9. User database location 
  10. Log files location
I do like to get information like this through query. Can i know if such information can be get through query or it should be get only thro' WMI. Please drop your ideas in getting these details.

Thanks in Advance,

Regards,
JeiSurya


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>