SQL Server Errors

A trigger returned a resultset and the server option ‘disallow results from triggers’ is true.

Error Message: Msg 524, Level 16, State 1, Procedure, Line 5 A trigger returned a resultset and the server option ‘disallow results from triggers’ is true. Severity level: 16. Description: This error message appears when you try to return a resultset from a trigger while the server option ‘disallow results from triggers’ is set to […]

Index ‘%.*ls’ could not be created or rebuilt. The key length for this index (%d bytes) exceeds the maximum allowed length of ‘%d’ bytes when using the vardecimal storage format.

Error Message: Msg 10617, Level 16, State 1, Line 2 Index ‘%.*ls’ could not be created or rebuilt. The key length for this index (%d bytes) exceeds the maximum allowed length of ‘%d’ bytes when using the vardecimal storage format. Severity level: 16. Description: This error message appears when you try to create an index […]

Cannot set NOCOUNT to OFF inside the trigger execution because the server option “disallow_results_from_triggers” is true or we are inside LOGON trigger execution.

Error Message: Cannot set NOCOUNT to OFF inside the trigger execution because the server option “disallow_results_from_triggers” is true or we are inside LOGON trigger execution. Cannot set NOCOUNT to OFF inside the trigger execution because the server option “disallow_results_from_triggers” is true or we are inside LOGON trigger execution. Severity level: 10. Description: This informational error […]

ALTER TABLE SWITCH statement failed. Target table ‘%.*ls’ and source table ‘%.*ls’ have different vardecimal storage format values.

Error Message: Msg 4984, Level 16, State 1, Line 2 ALTER TABLE SWITCH statement failed. Target table ‘%.*ls’ and source table ‘%.*ls’ have different vardecimal storage format values. Use stored procedure sp_tableoption to alter the ‘vardecimal storage format’ option for the tables to make sure that the values are the same. Severity level: 16. Description: […]

Explicit value must be specified for identity column in table ‘%.*ls’ either when IDENTITY_INSERT is set to ON or when a replication user is inserting into a NOT FOR REPLICATION identity column.

Error Message: Msg 545, Level 16, State 1, Line 4 Explicit value must be specified for identity column in table ‘%.*ls’ either when IDENTITY_INSERT is set to ON or when a replication user is inserting into a NOT FOR REPLICATION identity column. Severity level: 16. Description: This error message appears when you try to insert […]

Derived table ‘%.*ls’ is not updatable because it contains aggregates, or a DISTINCT or GROUP BY clause, or PIVOT or UNPIVOT operator.

Error Message: Msg 4418, Level 16, State 1, Line 5 Derived table ‘%.*ls’ is not updatable because it contains aggregates, or a DISTINCT or GROUP BY clause, or PIVOT or UNPIVOT operator. Severity level: 16. Description: This error message appears when you try to update a derived table that contains one of the in the […]

Cannot create the clustered index “%.*ls” on view “%.*ls” because the index key includes columns that are not in the GROUP BY clause. Consider eliminating columns that are not in the GROUP BY clause from the index key.

Error Message: Msg 8661, Level 16, State 0, Line 2 Cannot create the clustered index “%.*ls” on view “%.*ls” because the index key includes columns that are not in the GROUP BY clause. Consider eliminating columns that are not in the GROUP BY clause from the index key. Severity level: 16. Description: This error message […]

Cannot use TEXTIMAGE_ON when a table has no text, ntext, image, varchar(max), nvarchar(max), varbinary(max), xml or large CLR type columns.

Error Message: Msg 1709, Level 16, State 1, Line 1 Cannot use TEXTIMAGE_ON when a table has no text, ntext, image, varchar(max), nvarchar(max), varbinary(max), xml or large CLR type columns. Severity level: 16. Description: This error message appears when you try to use the TEXTIMAGE_ON keyword in a CREATE TABLE statement, but the table in […]

CREATE DATABASE permission can only be granted in the master database.

Error Message: CREATE DATABASE permission can only be granted in the master database. CREATE DATABASE permission can only be granted in the master database. Severity level: 16. Description: This error message appears when you try to grant CREATE DATABASE permission while not being in the master database context. Consequences: The T-SQL statement can be parsed, […]

The check statement was aborted. DBCC CHECKCATALOG cannot be run on TEMPDB.

Error Message: The check statement was aborted. DBCC CHECKCATALOG cannot be run on TEMPDB. The check statement was aborted. DBCC CHECKCATALOG cannot be run on TEMPDB. Severity level: 10. Description: This informational error message appears when you try to run DBCC CHECKCATALOG on tempdb. Consequences: Resolution: Error of this severity level are informational errors that […]
Software Reviews | Book Reviews | FAQs | Tips | Articles | Performance Tuning | Audit | BI | Clustering | Developer | Reporting | DBA | ASP.NET Ado | Views tips | | Developer FAQs | Replication Tips | OS Tips | Misc Tips | Index Tuning Tips | Hints Tips | High Availability Tips | Hardware Tips | ETL Tips | Components Tips | Configuration Tips | App Dev Tips | OLAP Tips | Admin Tips | Software Reviews | Error | Clustering FAQs | Performance Tuning FAQs | DBA FAQs |