What happens when you hit the SQL Server Express 4

2019-01-23 23:55发布

What kind of error occurs? What do users experience? Can you access the database using tools and what if you get it back under the 4GB / 10GB limit?

7条回答
女痞
2楼-- · 2019-01-24 00:20

Users experience the application not working, usually beginning with strange errors that have bubbled up way too high.

Any app built on a Express should have as part of its initial planning - how do we keep the size down. The plan - we'll worry about it whenever is ok, until someone has to fork over the license fee. And that is usually after tons of frustration, down time, debugging, someone thought the problem was a full drive, someone else thought it was that new code release, etc, frustration, etc. and the user has spent some time looking for another vendor who can plan ahead. Which I'm sure is exactly what you are doing. Kudos to you for thinking of your user first!!!!!!!!!

查看更多
SAY GOODBYE
3楼-- · 2019-01-24 00:20

Probably you won't be able to insert any more data, but you will be able to select.

查看更多
Luminary・发光体
4楼-- · 2019-01-24 00:20

If I remember correctly, when it happened to us, the database just stopped. We had to do a backup to clear enough space to get in and resolve things.

You might like to know that SQL Server 2008 Express R2 now has a 10GB limit, so it might be worth upgrading.

查看更多
Anthone
5楼-- · 2019-01-24 00:30

It is too late but I tested it. The maximum size for SQL express 2008 R2 is 10240 MB for each database. After I reached that I got this error on insert:

Could not allocate space for object 'TableName'.'PK_Nme' in database 'DBName' 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.

After this I restart the SQL service, It stopped and started with no problem. I still could run Select, update delete command. (I did test update command and it was success, but I think If you update to something bigger it may throw error!)

查看更多
啃猪蹄的小仙女
6楼-- · 2019-01-24 00:30

Actions that increase the size will fail, e.g Insert, Update. You will still be able to access the database and run maintenance on it to bring the size back down.

I would setup some maintenance jobs to alert you before the database reaches this size so you can prevent any data being lost.

查看更多
家丑人穷心不美
7楼-- · 2019-01-24 00:37

You might see an error like this:

CREATE DATABASE or ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 4096 MB per database.

Or this:

Could not allocate space for object 'dbo.buyspace'.'PK__buyspace__4B5BD7F83A81B327' in database 'WAYTOOBIG' 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.

That's from our error log.

查看更多
登录 后发表回答