hi,
the following are the outputs of sp_spaceused and
sp_tempdbspace
sp_spaceused
------------
database size unallocated size
tempdb 77752.95 MB 28026.99 MB
sp_tempdbspace
-------------
database size spaceused
tempdb 77752.945312 1.007812
the unused space in sp_spaceused is nearly 28 Gb and in
sp_tempdbspace is nearly 76 Gb
cany any one explain about this output and why its giving
different results.
Answer / Surendra Nath
The difference in results between sp_spaceused and sp_tempdbspace is due to the way these stored procedures report the allocated and unallocated space for the tempdb database. sp_spaceused provides a high-level overview of the total size, used space, and available space for all databases on the instance, whereas sp_tempdbspace focuses specifically on the tempdb database. The unused space in sp_spaceused is nearly 28 GB, while the unused space reported by sp_tempdbspace is nearly 76 GB, but this discrepancy is likely due to the different methods used for reporting and not actual lost space.
| Is This Answer Correct ? | 0 Yes | 0 No |
Does any body please help me what question's have asked for SSRS in the interview?
what is index seek and index scan?
About DTS usage ?
What is difference between drop truncate and delete?
Write a program using SQL queries to find a unique entry in a table.
Where is localdb stored?
What are the advantages of partitioning?
What is the difference between varchar and varchar(max) datatypes?
How to see existing views in ms sql server?
How retrieve field names from the table in SQL through JAVA code?
What is user-defined functions? What are the types of user-defined functions that can be created?
What is the difference between truncate and delete statement?
6 Answers CarrizalSoft Technologies, CTS,
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)