Oct 21, 2003 #1 gracine IS-IT--Management Joined Apr 3, 2003 Messages 6 Location CA Hi is it possible to query database to know how many diskspace it use on disk ? and what is the physical name of that db ?? thanks
Hi is it possible to query database to know how many diskspace it use on disk ? and what is the physical name of that db ?? thanks
Oct 21, 2003 #2 sunila7 Technical User Joined Apr 11, 2001 Messages 1,087 Location US Have a look at sp_spaceused in books online for space used on the machine. Here is a link to it. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_fa-fz_7oqb.asp About the database name, have a look at db_name() SELECT db_name() should give you the result, here is the link to it. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_fa-fz_7oqb.asp Sunil Upvote 0 Downvote
Have a look at sp_spaceused in books online for space used on the machine. Here is a link to it. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_fa-fz_7oqb.asp About the database name, have a look at db_name() SELECT db_name() should give you the result, here is the link to it. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_fa-fz_7oqb.asp Sunil
Oct 21, 2003 Thread starter #3 gracine IS-IT--Management Joined Apr 3, 2003 Messages 6 Location CA thanks Upvote 0 Downvote