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
What is a functions and types in sql server?
What are the new features of sql server 2012 reporting service?
What is difference between getdate and sysdatetime in sql server 2008?
What is 1nf 2nf and 3nf?
What are the types of stored procedures in an sql server?
query processing
Can a table have 2 primary keys?
How do I find the query plan in sql server?
Explain acid?
How do I open port 1433?
Is null vs coalesce?
What is difference between cte and view?
What is query processing?
Tell me in brief how sql server enhances scalability of the database system?
How to handle error or exception in sql?