how can i query my sql server to only get the size of database?
I used this :
use \"MY_DB\" exec sp_spaceused
I got this :
EXEC sp_spaceused @oneresultset = 1 show in 1 row all of the result
EXEC sp_spaceused @oneresultset = 1
if you execute just 'EXEC sp_spaceused' you will see two rows Work in SQL Server Management Studio v17.9