Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 sp_spaceused

Author  Topic 

california6
Starting Member

38 Posts

Posted - 2008-08-19 : 14:31:50
Could someone please share how to dunp sp_spaceused stored procedure output values to a table for reporting purpose?


Thanks,

Cali

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-19 : 14:37:52
I use sp_databases instead of sp_spaceused due to the number of result sets returned.

CREATE TABLE Table1...

INSERT INTO Table1 (...)
EXEC sp_databases

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-08-19 : 14:42:07
This will be helpful:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=108369
Go to Top of Page

california6
Starting Member

38 Posts

Posted - 2008-08-19 : 15:09:14
tkizer and sodeep you guys are amazing and i sincerly appreciate your contribution. thanks a million for your answers.

Cali
Go to Top of Page
   

- Advertisement -