Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL DMO - EnumAvailableMedia

Status
Not open for further replies.

JRumage

MIS
Dec 16, 1998
7
US
Can anyone tell me how to interpret the results from

EnumAvailableMedia

I have queried my Application object and it returns these results about my drives:

Drive 1
QR.GetColumnString(I, 1) = "C:\"
QR.GetColumnLong(I, 2) = 920580096
QR.GetColumnLong(I, 3) = 0

Drive 2
QR.GetColumnString(I, 1) = "D:\"
QR.GetColumnLong(I, 2) = -49618944
QR.GetColumnLong(I, 3) = 1

I need to determine the actual drive space available. I know Drive 2 is larger, but how do you
interpret -49618944 as drive space.
 
Are you using a int, it might be causing an overflow on a drive bigger than 4gb?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top