<p>I know I could write scripts and create jobs to run them, but at least some of what I'm wanting it to do is beyond my programming abilities for that to be an option.</p>

<p>What I'm imagining is something that can run on a regular schedule that will examine all the databases on a server and automatically shrink data and log files (after a backup, of course) when they've reached a file size that contains too much free space.  It would be nice if it could defrag index files when they've become too fragmented as well.</p>

<p>I guess what I'm probably looking for is a DBA in a box! </p>

<p>Or it could just be that I need better performance monitoring tools instead.  I know how to take care of both of those issues, but it's more that I forget to check for those issues until I start seeing performance issues with my apps.</p>

[{'answer_id': 23009, 'author': 'SQLMenace', 'author_id': 740, 'author_profile': 'https://Stackoverflow.com/users/740', 'pm_score': 2, 'selected': False, 'text': '<p>That stuff is all built in, it is called a maintenance plan</p>\n'}, {'answer_id': 23069, 'author': 'solarce', 'author_id': 2519, 'author_profile': 'https://Stackoverflow.com/users/2519', 'pm_score': 3, 'selected': True, 'text': '<p>If you are using SQL Server 2005.  Fire up the Management Studio and look at the Maintenance Plan section.</p>\n\n<p>See <a href="http://msdn.microsoft.com/en-us/library/ms189036.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms187658.aspx</a> for an overview and <a href="http://msdn.microsoft.com/en-us/library/ms189036.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms189036.aspx</a> for details on the Maintenance plan wizard.</p>\n\n<p>Finally, <a href="http://msdn.microsoft.com/en-us/library/ms140255.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms140255.aspx</a> is a list of all the maintenance tasks available.</p>\n\n<p>I am pretty sure this is all available even in the Express Edition.  I can\'t speak to if anything has changed in 2008, I haven\'t used it yet.</p>\n'}, {'answer_id': 23074, 'author': 'jonezy', 'author_id': 2272, 'author_profile': 'https://Stackoverflow.com/users/2272', 'pm_score': 0, 'selected': False, 'text': '<p>yeah everything you described (except maybe perf monitoring) can be done with database maintenance plans, back ups, shrinking log files etc.</p>\n'}, {'answer_id': 23174, 'author': 'upheaval', 'author_id': 2505, 'author_profile': 'https://Stackoverflow.com/users/2505', 'pm_score': 0, 'selected': False, 'text': "<p>I guess the tool I was looking for was under my nose the whole time!  I've used Maintenance Plans for backups but I think I set those up at least 4 years ago or more, long before I knew anything about shrinking files and defragging indexes.  Thanks!</p>\n"}]
['https://Stackoverflow.com/questions/23001', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2505/']