Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 show disk size in GB

Author  Topic 

avipenina
Starting Member

44 Posts

Posted - 2010-01-03 : 04:42:03
hi,

how can i show all my disks total size in GB?
i know that i have this xp_fixeddrives but it is show me only
free space, i need also the total size in GB for every disk.

THX

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-01-03 : 11:00:23
You can use this: http://weblogs.sqlteam.com/tarad/archive/2007/12/18/60435.aspx

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

avipenina
Starting Member

44 Posts

Posted - 2010-01-04 : 01:39:00
thanks for your answer.
i want something that is within sql and not with outside files.(xp_cmdshell is good).

THX
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-01-04 : 10:35:48
That is within SQL. That's the point of .NET CLR objects.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -