在向数据库中插入数据时,报如下错误:
Could not allocate space for object 'TableName'.'PK_WinloseReport' 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.
开始以为是磁盘空间不足导致数据库自增长时超出大小,但查看后发现磁盘是有足够空间满足数据库增长的。没办法,只好手动在数据库属性中修改主文件大小(也可以新建另一主文件,这里为方便直接更新大小了),但不允许修改,错误如下:
CREATE DATABASE or ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 10240 MB per database. (.Net SqlClient Data Provider)
在网上收集相关资料时发现,原来SQL SERVER 2008 R2只允许每个数据库主文件大小有10G,因此增长不了了。没办法,只有将该移到另一个新的库中,用同义词进行访问。
如果大家对什么好办法,望留言。谢谢!!!