Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Database size
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Miscellaneous
Thread ID:
01064443
Message ID:
01064444
Views:
18
Einar

Below is a stored procedure I use to get the free space of the drives, and you can use sp_helpfile to get the current size of files.
CREATE PROCEDURE dbo.Get_DriveDiskDriveData

as

create table #FreeSpace( cDrive char(1),  MB_Free int)

insert into #FreeSpace exec master..xp_fixeddrives 

select * from #freespace
drop table #freespace
GO
Previous
Reply
Map
View

Click here to load this message in the networking platform