Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 .NET Inside SQL Server (2005)
 How many tables a database can hold?

Author  Topic 

dhevi
Starting Member

1 Post

Posted - 2008-06-19 : 06:34:14
Hi everybody,

Generally, How many tables a database can hold?

Thanks,
Dhevi.S

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2008-06-19 : 06:43:26
As per Books Online, number of tables limited by number of objects in a database and the sum of the number of all objects in a database cannot exceed 2,147,483,647.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2008-06-19 : 08:47:32
"OH NO!! I'll have to scratch my project then...bummer"



- Lumbago
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-06-19 : 09:29:15
[code]DECLARE @Item BIGINT,
@SQL VARCHAR(200)

SET @Item = 1

WHILE 1 = 1
BEGIN
SELECT @SQL = 'CREATE TABLE tbl' + REPLACE(STR(@Item, 40), ' ', '0') + ' (i INT)',
@Item = @Item + 1

EXEC (@SQL)
END[/code]Please report back when finished.


E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-06-21 : 21:05:15
Read about Maximum Capacity Specifications to know more about the number of objects can be created

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

sachinsamuel
Constraint Violating Yak Guru

383 Posts

Posted - 2008-06-22 : 03:15:19
To add to Madhivanan's post please check the below link.

http://msdn.microsoft.com/en-us/library/ms143432.aspx

regards
Sachin

Don't sit back because of failure. It will come back to check if you still available. -- Binu
Go to Top of Page
   

- Advertisement -