Sql-server – Microsoft SQL Server Data Limit

sql server

I am using a Microft SQL Express edition server limited to 10GB/database. The original database runs on a licenced server and it is ~15GB. I was given a small part of this database (last couple years of data) which should be well below 10GB. The .bak file is 6GB, I am assuming the DB itself is ~2.5-3GB. When I try to restore from the backup the MSSQL Management studio clearly sees that the .bak file is 6GB but still it says "Restore failed, resulting database would exceed you limit of 10GB/database".

Any ideas what is happening? I am confused.

My "minimal" .bak file resulted from cutting down (DELETE a few years of data) a copy of the original database.

Best Answer

Louis,

Even though the file itself is only 6 GB, the database (when restored) would have a size LARGER than 10 GB. Ask whomever gave the backup to you to shrink the database size down to under 10 GB and make you another backup. Even if there isn't any data in the database, it can't have a size larger than 10 GB.