Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Practical limit for the number of databases in SQL Server?

In one of the stackoverflow podcasts (#18 I think) Jeff and Joel were talking about multi vs single tenant databases. Joel mentioned that "FogBugz on Demand" used a database per customer architecture and I was wondering if there is a point beyond which you'll need to have multiple database servers to distribute the load?

like image 269
Darren Avatar asked Oct 21 '08 00:10

Darren


People also ask

Is there a limit to database size?

A database can grow as large as the memory available which stores it. Sql Express limit 10GB, other no.

What are the limitations of SQL Server?

Express edition limitations Microsoft SQL Server Express has a 10 GB maximum database size and other important limits. High load scenarios are not supported by Express. Symptoms can include database connection errors. Express has a "LocalDB" preset.

How many databases are there in SQL Server?

Introduction. There are at least 4 system databases in any SQL Server instance as shown by the following SQL Server Management Studio (SSMS) screen capture: master. model.


2 Answers

Technically the limit of databases per instance in SQL Server is 32,767, but I doubt that you could use a SQL Server instance that has more than 2,000 databases, at that point the server would probably be not responsive.

You may be able to have close to 30,000 databases if they were all auto-closed and not being used. you can find more information about capacity limits here:

Maximum Capacity Specifications for SQL Server

like image 68
Christian C. Salvadó Avatar answered Sep 20 '22 10:09

Christian C. Salvadó


Joel has talked about this at another place (sorry, no reference handy) and said that before switching to MS SQL 2005 the management console (and the backend) had problems attaching more than 1000 or 2000 databases. It seems that 2005 and probably 2008 again improved on these numbers.

As for all performance questions are always dependent on your actual hardware and workload an can only definitely answered by local benchmarking/system monitoring.

like image 31
David Schmitt Avatar answered Sep 22 '22 10:09

David Schmitt