Re: SQL Server quick analysis
From: David Gugick (davidg-nospam_at_imceda.com)
Date: 01/20/05
- Next message: Sue Hoegemeier: "Re: Running Symantec AntiVirus software on SQL Server 2000 v8.00.194"
- Previous message: Murph: "Link Server - SQL Server 7.0 & Windows 2000 Server"
- In reply to: mrdj: "SQL Server quick analysis"
- Next in thread: mrdj: "Re: SQL Server quick analysis"
- Reply: mrdj: "Re: SQL Server quick analysis"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 20 Jan 2005 15:38:18 -0500
mrdj wrote:
> Has anyone written anything that will take a quick look at all the
> databases, file locations, file sizes, etc. on a SQL Server? Don't
> want to recreate the wheel, but basically I would like to see these
> things without having to go through the tedious steps back and forth
> between sp_helpdb, DBCC SQLPERF(logspace), sp_spaceused, etc.
> Thanks.
You can use the sp_MSForEachDB procedure to make a call to all
procedures. For example:
Exec master..sp_MSForEachDB 'Use "?"; Exec sp_helpdb "?"; Exec
sp_spaceused'
You could also use SQL EM by selecting a database and then View | Task
Pad from the contect menu on the DB.
-- David Gugick Imceda Software www.imceda.com
- Next message: Sue Hoegemeier: "Re: Running Symantec AntiVirus software on SQL Server 2000 v8.00.194"
- Previous message: Murph: "Link Server - SQL Server 7.0 & Windows 2000 Server"
- In reply to: mrdj: "SQL Server quick analysis"
- Next in thread: mrdj: "Re: SQL Server quick analysis"
- Reply: mrdj: "Re: SQL Server quick analysis"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|