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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine Current Disk Usage

Status
Not open for further replies.

davewelsh

Programmer
Jun 26, 2001
71
CA
My hosting company has a quota in place for my MS SQL server (SQL Server 2000 I think). I wanted to write a script in ASP that would determine how much space is currently being used in my database so I could tell if I need to buy more storage or clear some rows.

Are there any SQL commands that could help me out with that?
 
I saw in the FAQ that you can use something like
Code:
exec sp_spaceused <tablename>
But I don't know how to use that with ASP/ADO.
 
Execute that stored procedure as you would any other stored procedure. Are you using ASP or ASP.NET?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top