【问题标题】:Error: 1105 in sql server错误:sql server 中的 1105
【发布时间】:2013-12-03 09:45:02
【问题描述】:

我使用SOL server 2012 作为数据库服务器。 现在mdf 文件大小约为10 GB。 当我对这个数据库进行任何交易时,sql server 会出现以下错误

错误号:1105 错误消息:无法为对象 dbo.tblsdr 分配空间。 PK_tblsdr_3213E83F0AD2A005 在数据库 hwbsssdr 中,因为 PRIMARY 文件组已满。 通过删除不需要的文件、删除文件组中的对象、向文件组添加其他文件或为文件组中的现有文件设置自动增长来创建磁盘空间。

我的光盘上几乎有400 GB 的可用空间。 谁能告诉我这是什么问题,我该如何解决。

【问题讨论】:

    标签: sql-server-2012-express


    【解决方案1】:

    由于您使用的是 SQL Server 2012 的 Express 版本,每个数据库有 10GB 的限制,所以这是您的问题。

    顺便说一下,问题不一定是磁盘快用完了。

    此外,如果您有将 MAXSIZE 设置为特定值的数据库,并且如果数据库达到该值,则每个下一个事务都会报告您的问题的错误。

    因此,如果您确定有足够的磁盘空间用于下一个事务,请检查执行下一个代码的数据库的 MAXSIZE 属性:

    use master;
    go
    
    exec sp_helpdb [YourDatabase]
    

    如果你想改变 MAXSIZE 数据库属性,你可以用下面的代码来做:

    alter database [YourDatabase]
    modify file
    (
        name = 'YourDatabaseFile',
        maxsize = X MB 
    )
    

    【讨论】:

      【解决方案2】:

      说明

      The specified filegroup has run out of free space.
      

      动作

      To gain more space, you can free disk space on any disk drive containing a file in the full filegroup, allowing files in the group to grow. Or you can gain space using a data file with the specified database.
      

      释放磁盘空间

       You can free disk space on your local drive or on another disk drive. To free disk space on another drive:
          Move the data files in the filegroup with an insufficient amount of free disk space to a different disk drive.
          Detach the database by executing sp_detach_db.
          Attach the database by executing sp_attach_db, pointing to the moved files.
      

      使用数据文件

       Another solution is to add a data file to the specified database using the ADD FILE clause of the ALTER DATABASE statement. Or you can enlarge the data file by using the MODIFY FILE clause of the ALTER DATABASE statement, specifying the SIZE and MAXSIZE syntax.
      

      【讨论】:

      • 我的系统上有 2 个驱动器,每个驱动器大小为 500 GB。还有 C 有 300 GB 的可用空间,另一个有 200 GB 的可用空间。我认为数据库文件有足够的空间。
      猜你喜欢
      • 2023-03-15
      • 1970-01-01
      • 1970-01-01
      • 2012-04-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多