mutley1
MIS
- Jul 24, 2003
- 909
Hi all,
I have a DB with approx 100 tables and want to run a sp_spaceused on all of them to fine the larger ones so they can be cleared down. Only using QA at the moment so unless I run them 1 by 1, I'm running:
sp_spaceused tbl1
GO
sp_spaceused tbl2
GO
sp_spaceused tbl3
GO
sp_spaceused tbl4
GO etc. etc. etc.
However, the results are returned one by one.
Is there a way to concatenate them all (i.e. so I can just copy & paste into Excel) or am I going to have to set up a temp table, insert the results and then extracy via select all from that?
Thx,
M.
I have a DB with approx 100 tables and want to run a sp_spaceused on all of them to fine the larger ones so they can be cleared down. Only using QA at the moment so unless I run them 1 by 1, I'm running:
sp_spaceused tbl1
GO
sp_spaceused tbl2
GO
sp_spaceused tbl3
GO
sp_spaceused tbl4
GO etc. etc. etc.
However, the results are returned one by one.
Is there a way to concatenate them all (i.e. so I can just copy & paste into Excel) or am I going to have to set up a temp table, insert the results and then extracy via select all from that?
Thx,
M.