Hi. Does anyone know how to display the results if i execute "xp_fixeddrives, xp_availablemedia and xp_subdirs" commands with VC++ 6.0? I can't obtained the results using Recordset class. Can someone help me? Thank you.
|_N_T_|
See if the following works for you:
create table #FreeSpace(
Drive char(1),
MB_Free int)
insert into #FreeSpace exec xp_fixeddrives
select * from #freespace
|||For some reason, that didn't work for me but this did:
Declare @.FreeSpace TABLE (
Drive char(1),
MB_Free int)
insert into @.FreeSpace exec xp_fixeddrives
select * from @.freespace
Go figure...
No comments:
Post a Comment