TheSQLGuru
3/25/2007 11:01:00 PM
I have a client with essentially the same problem - 6100+ databases on a
SQL2005 cluster, growing at almost 10%/month in the last year! Every tool
except SSMS breaks down in some way or another when trying to connect up to
the server due to iteration through the database metadata. SQL Server's own
internal stuff (backups, maintenance plans, log shipping, database
mirroring, etc) doesn't function very well either with such large numbers of
databases.
I built a custom maintenance system which is driven by a single table that
contains suffient metadata to drive different management/maintenance
activities. Backups, index/statistics maint, report server refreshes
(hand-crafted log shipping to a report server without the internal overhead
of sql server's built-in log shipping) are all sproc driven from this one
table. VERY slick!! I would package it up and sell it if I thought there
were more than just the two of us with so many databases on one server.
:-))
I am concerned that you have your databases set for auto-close though. That
can be a SIGNIFICANT performance drain, especially if you have poor code
(bad ADO comes to mind) that does a lot of open/close connection stuff.
Also, connection pooling may be caught up in the mix here too. RAM is
cheap, and should NEVER be a reason to do bad things on your servers these
days!!
--
TheSQLGuru
President
Indicium Resources, Inc.
"Icemokka" <icemokka@gmail.com> wrote in message
news:1174750731.887884.195990@n76g2000hsh.googlegroups.com...
> Hi,
>
> We have a SQL-cluster with over 6300 databases, most of them pretty
> small in size and usage.
> For this reason all these databases are on auto-close ( Otherwise SQL
> would need many many gigabytes ).
>
> We've recently upgraded to SQL 2005 because of the Management Studio,
> because the EM is unusable on a SQL-Server with lots of databases.
>
> But whenever you choose 'all user databases' or 'all databases' in any
> of the DB Maintenance task, MSSQL begins starting up every database
> which takes about 30 minutes. Until then, you cannot use your Studio
> anymore.
>
> My question : is there a possibility to avoid this behavior, it should
> not go and check all those db's, just add my task.
>
> PS : Detaching these databases is not an option ...
>
> Thanks in advance,
> Sven Peeters
>