简体   繁体   中英

What's the sql exception error number if the maximum limit of the database has been reached

For example SQL Server 2005 Express has a limit of 4gb on the database size, and it has been reached after cumulative inserts of data. What will be the corresponding error number?

消息1827,级别16,状态4,服务器SOMECOMPUTER \\ SQLEXPRESS,第1行CREATE DATABASE或ALTER DATABASE失败,因为最终的累积数据库大小将超出每个数据库4096 MB的许可限制。

I think these are the error codes you are looking for.

Error 1827:

"CREATE DATABASE or ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 4096 MB per database. (Microsoft SQL Server, Error: 1827)"

Error 1105:

"Could not allocate space for object 'dbo.t' in database 'ext' 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."

Hope this helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM