SQL Server 数据库已满:无法为对象分配空间

发布于 2024-09-25 06:18:46 字数 418 浏览 0 评论 0原文

我的 C# .NET 3.5 应用程序使用 MS SQL Server 2008 Express。我正在向数据库写入大量数据。在某些时候我遇到了一个例外:

无法为数据库“Cases”中的对象“dbo.Attachment”分配空间。“PK_Attachme_3214EC0707020F21”在数据库“Cases”中,因为“PRIMARY”文件组已满。通过删除不需要的文件、删除文件组中的对象、向文件组添加其他文件或为文件组中的现有文件设置自动增长来创建磁盘空间。

查看数据库,我看不到任何问题:初始大小设置为 4Gb,自动增长设置为 1Mb(然后我将其设置为 10%),但这没有任何区别。

属性的常规页面显示数据库大小为 4117M,可用空间为 0,15M。为什么它不自动增加大小?是特快限制吗?

My C# .NET 3.5 application uses MS SQL Server 2008 Express. I am writing huge amount of data to the database. At some point I get an exception:

Could not allocate space for object 'dbo.Attachment'.'PK_Attachme_3214EC0707020F21' in database 'Cases' 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.

Looking in the database I cannot see any problems: the initial size is set to 4Gb, autogrowth is set by 1Mb (I then set it to 10%) but this did not make any difference.

General page of properties shows me that database size is 4117M and the space available is 0,15M. Why doesn't it increase the size automatically? Is it Express restriction?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

娇柔作态 2024-10-02 06:18:46

SQL Server Express 2008 限制为 4GB。

SQL Server Express 2008 R2 限制为 10GB。

听起来你有第一个。您可能会考虑升级到最新的 R2 版本。

Wiki 链接

2008 R2 版本的 MS 信息

以及非常相关的 Stack Overflow 链接

SQL Server Express 2008 is limited to 4GB.

SQL Server Express 2008 R2 is limited to 10GB.

Sounds like you have the first one. You might consider just upgrading to the latest R2 edition.

Wiki link

MS Info for 2008 R2 editions.

and a Very Related Stack Overflow link

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文