如果已达到数据库的最大限制,sql 异常错误号是多少

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

例如SQLServer 2005 Express对数据库大小有4GB的限制,在累计插入数据后已经达到了。对应的错误号是多少?

Msg 1827, Level 16, State 4, Server SOMECOMPUTER\SQLEXPRESS, Line 1 CREATE DATABASE or ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 4096 MB per database.

我认为这些是您要查找的错误代码。

错误 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)"

错误 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."

希望对您有所帮助