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
 General SQL Server Forums
 New to SQL Server Programming
 Checking the Network Drive Disk Space

Author  Topic 

Arfan
Starting Member

6 Posts

Posted - 2008-07-09 : 20:35:43
hi all, can someone provide me some idea or code to check the free disk space of mapped network drive....

Or is there any way to get the xp_diskspace system store procedure as i have installed the SQL Server 2000 and not able to c that stored procedure in the Master database....

Arfan Gull.
Sr. Software Engineer.
Ovex Technologies.
EFU House Gulberg III, Lahore, Pakistan.
Cell: +92-332-4468223
Office: +92-42-5786772
Email: igull@premierbpo. com,irfan623@hotmail. com

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-07-09 : 21:55:48
You can't see free space on mapped network drive.
For local disk:
You can use xp_fixeddrives
Go to Top of Page

Arfan
Starting Member

6 Posts

Posted - 2008-07-10 : 07:02:31
What if i want to check the free space on the shared directory or disk??
Is there any way possible ?

Arfan Gull.
Sr. Software Engineer.
Ovex Technologies.
EFU House Gulberg III, Lahore, Pakistan.
Cell: +92-332-4468223
Office: +92-42-5786772
Email: igull@premierbpo. com,irfan623@hotmail. com
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-07-10 : 08:26:45
I already explained about disk. I donno about shared drive.
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-07-10 : 08:34:17
use xp_cmdshell to execute a DIR drive: or DIR \\server\shared the free space will be shown at the last line


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

Arfan
Starting Member

6 Posts

Posted - 2008-07-10 : 08:51:09

i did this in this way...

Exec xp_cmdshell 'Shared Folder Name'

It gaved me nothing at all...

Message shown is : Command completed successfully

Arfan Gull.
Sr. Software Engineer.
Ovex Technologies.
EFU House Gulberg III, Lahore, Pakistan.
Cell: +92-332-4468223
Office: +92-42-5786772
Email: igull@premierbpo. com,irfan623@hotmail. com
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-07-10 : 09:14:14
quote:
Originally posted by Arfan


i did this in this way...

Exec xp_cmdshell 'Shared Folder Name'

It gaved me nothing at all...

Message shown is : Command completed successfully

Arfan Gull.
Sr. Software Engineer.
Ovex Technologies.
EFU House Gulberg III, Lahore, Pakistan.
Cell: +92-332-4468223
Office: +92-42-5786772
Email: igull@premierbpo. com,irfan623@hotmail. com


where is the DIR ?


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

Arfan
Starting Member

6 Posts

Posted - 2008-07-10 : 09:37:18
I can see the free space... thanks dear... GOD BLESS!

Arfan Gull.
Sr. Software Engineer.
Ovex Technologies.
EFU House Gulberg III, Lahore, Pakistan.
Cell: +92-332-4468223
Office: +92-42-5786772
Email: igull@premierbpo. com,irfan623@hotmail. com
Go to Top of Page
   

- Advertisement -