Re: DB size increase from SQL 2000 to 2005



The largest table I previously mentioned has increased in rows from 449,000
to 451,000. There are no text/ntext/image columns in the db.

The script returned 9 tables - what does it mean? Orphaned indexes?
This db does have a weekly optimization/reindex job that runs.



"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message
news:Xns9A4D817C05151Yazorman@xxxxxxxxxxxx
Artie (artie2269@xxxxxxxxx) writes:
A few months ago a customer moved from SQL 2000 to SQL 2005. The db was
backed up on SQL 2000 and restored to SQL 2005. The application using
this data works on SQL 2005 but takes no advantage of new features. The
db on SQL 2000 was about 2.9GB, now on SQL 2005, it is 16.5GB. The db
is set to Simple recovery so trx log is only 2mb. The mdf file is
16.5GB, Management Studio shows only 5mb free space. There has not been
a huge increase in transactions.
One of the largest tables has only added 2,000 rows since the move to
SQL 2005. Yet the data and index size has jumped from about 400mb to
3.5 GB. I used the 'BigTables.sql' script found at various SQL sites:
www.databasejournal.com/img/BigTables.sql

There is very little information to work from. Have you checked the tables
for fragmentation? How many rows are there in the table that has grown
so much? Are there text/ntext/image columns in the database? Does this
query return any rows:

SELECT object_name(object_id), name FROM sys.indexes
WHERE index_id = 0?

--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx



.



Relevant Pages

  • Re: user wants access
    ... I would strongly recommend you read Books Online for this information. ... the db_securityadmin fixed database role. ... Looking for a SQL Server replication book? ...
    (microsoft.public.sqlserver.server)
  • Re: reclaiming LOB space
    ... Books Online says "Reclaims space from dropped variable-length ... But as I understood Mike, he did not drop the column, only setting the ... Links for SQL Server Books Online: ...
    (microsoft.public.sqlserver.server)
  • Re: SQL Server Management Studio cant see the 2005 engine?? But can see 2000 ?!?
    ... contains the databases that I had previously defined in SQL Server 2000. ... Installation Wizard" it says that I've got a higher version and cannot ... Just pick "Server components, tools, Books Online and samples" ...
    (comp.databases.ms-sqlserver)
  • Re: Replication
    ... The SQL CE Books Online contain a nice chart that shows you the data type ... > Server Ce database. ... > the same type as on the Sql Server Ce database? ...
    (microsoft.public.sqlserver.ce)
  • Re: Admin Version of WITH(UPDLOCK)?
    ... Right now I'd be happy with even a minimal level of concurrency from SQL ... Server via multiple JDBC connections. ... forgiving and/or better equipped to deal with deadlocks than SQL Server ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)