Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Empty database over 10GB in size

While I was trying to populate a table from a 11GB text file (.tsv) I got the error:

Could not allocate space for object 'X' in database 'Y' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.

I thought the problem was the database exceeded 10GB, which is the limit for SQL Express. Yet, when I checked, I noticed the database is actually empty. The query

SELECT TOP 10 *
FROM Table

Takes several minutes to execute and it gives me back nothing. When I checked under properties > files I found out filegroup PRIMARY is actually 10240MB.

What is this about, and how can solve the problem?

like image 821
Edgar Derby Avatar asked Jan 27 '26 11:01

Edgar Derby


1 Answers

Populating 11GB text file into SQL server express will give an error since it will exceed the edition limit. You either split the text file into 2 files or upgrade to standard edition. Or try Oracle XE? It store up to 11GB :) might be just enough for you.

like image 199
vasin1987 Avatar answered Jan 29 '26 07:01

vasin1987



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!