Syntax to find the used space and free space of the Data
file in a database(SQL Server). Following queries didn't
give the exact Used space and Free Space Information
sp_spaceused;DBCC showfilestats;exec
MyDbName.dbo.sp_spaceused;SP_HELPFILE

Can any one tell me the query for how to find the exact
used data file space and free space in a Data File?

Answer Posted / allah baksh

exec sp_spaceused [schema.tablename] this will give you
data file and the size available

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does the order of columns in update statements matter?

482


What is rtm version in sql server?

525


What is 1nf normalization form?

599


How do you know if sql server is running on your local system?

542


Are semicolons required at the end of sql statements in sql server 2005?

568






Where are sql server user names and passwords stored in sql server?

539


You have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem?

570


What are window functions in sql server?

513


How can you find out how many rows returned in a cursor?

551


What is the name of reporting services config file and what’s it’s used for?

107


How many columns can we include on clustered index ?

511


Is it important for a database administrator to understand the operating system and file access?

515


What is the default port for SQL Server over a firewall?

593


what is the difference between count(*) and count(1) ?

631


What are translations and its use? : sql server analysis services, ssas

605