dbTalk Databases Forums  

How To find Disc Free space from MS SQL 2000 query

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss How To find Disc Free space from MS SQL 2000 query in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alok
 
Posts: n/a

Default How To find Disc Free space from MS SQL 2000 query - 07-14-2004 , 08:14 AM






Hi all,
I have to find free disc space in a drive from SQL Query and i am
using MSSQL200. Does any body know the command for the same.

Also if i want to find hard disk space of a different machine on
network, it is possible to get the data??

Also can i get the CPU/Memory usage data of our machine by some
SQL/C++ commands??

Please let me know if u know any of the answer...

thanks
Alok

Reply With Quote
  #2  
Old   
Simon Hayes
 
Posts: n/a

Default Re: How To find Disc Free space from MS SQL 2000 query - 07-15-2004 , 04:31 AM






alok.gupta (AT) gmail (DOT) com (Alok) wrote in message news:<5dff41b9.0407140514.70119b1c (AT) posting (DOT) google.com>...
Quote:
Hi all,
I have to find free disc space in a drive from SQL Query and i am
using MSSQL200. Does any body know the command for the same.

Also if i want to find hard disk space of a different machine on
network, it is possible to get the data??

Also can i get the CPU/Memory usage data of our machine by some
SQL/C++ commands??

Please let me know if u know any of the answer...

thanks
Alok
exec master..xp_fixeddrives

But this is not documented, so you should not rely on it. In many
cases, retrieving information about the operating system is very
awkward from SQL, and you should probably look at Performance Monitor
or an interface like WMI to get this information more easily.

Simon


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.