SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Jobs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Frozen_123
Starting Member

India
33 Posts

Posted - 11/09/2007 :  18:27:43  Show Profile  Reply with Quote
Hi All,

I want to create a job which will basically fetch the information from the system. I mean job will fetch the following information about disk available in the system.

1) Drive
2) Total Size
3) Available Space
4) %free space

Suppose I have 3 drives d,h,i
The information should look like this

Drive Totalsize Available Space %free space
H 2 Gb 1 GB 50%

Can anyone please help me.

Regards,
Frozen


nathans
Aged Yak Warrior

USA
933 Posts

Posted - 11/09/2007 :  19:44:02  Show Profile  Reply with Quote
Have you looked into:

exec master.dbo.xp_fixeddrives


There are many examples on the Net describing how to put the resultset of this into an alert email.



Nathan Skerl
Go to Top of Page

Frozen_123
Starting Member

India
33 Posts

Posted - 11/09/2007 :  20:18:17  Show Profile  Reply with Quote
yes XP_fixeddrives only genterate the results in two columns which are Drive and FreeSpace.

Go to Top of Page

nathans
Aged Yak Warrior

USA
933 Posts

Posted - 11/09/2007 :  20:34:13  Show Profile  Reply with Quote
This looks like what youre after:

http://www.databasejournal.com/features/mssql/article.php/3549936


Nathan Skerl
Go to Top of Page

Frozen_123
Starting Member

India
33 Posts

Posted - 11/11/2007 :  22:53:41  Show Profile  Reply with Quote
Thanks Nathan
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000