SQL Server Errors

ALTER TABLE failed because trigger ‘%.*ls’ does not belong to table ‘%.*ls’.

Error Message: Msg 4921, Level 16, State 0, Line 2 ALTER TABLE failed because trigger ‘%.*ls’ does not belong to table ‘%.*ls’. Severity level: 16. Description: This error message appears when you try to perform an action (enable, disable, etc) for a trigger via an ALTER TABLE statement, but the trigger does not belong to […]

The ‘%.*ls’ procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be returned instead.

Error Message: The ‘%.*ls’ procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be returned instead. The ‘%.*ls’ procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be returned instead. Severity level: 10. Description: This informational error message appears […]

ALTER TABLE SWITCH statement failed. Target table ‘%.*ls’ has a column level check constraint ‘%.*ls’ but the source table ‘%.*ls’ does not have a corresponding constraint.

Error Message: Msg 4971, Level 16, State 1, Line 2 ALTER TABLE SWITCH statement failed. Target table ‘%.*ls’ has a column level check constraint ‘%.*ls’ but the source table ‘%.*ls’ does not have a corresponding constraint. Severity level: 16. Description: This error message appears when you try to execute an ALTER TABLE SWITCH command, for […]

The logical tables INSERTED and DELETED cannot be updated.

Error Message: Msg 286, Level 16, State 1, Procedure, Line 5 The logical tables INSERTED and DELETED cannot be updated. Severity level: 16. Description: This error message appears when you update the logical tables INSERTED and DELETED in a trigger. Consequences: The T-SQL statement can be parsed, but causes the error at runtime. Resolution: Error […]

Cannot use table option LARGE VALUE TYPES OUT OF ROW on a user table that does not have any of large value types varchar(max), nvarchar(max), varbinary(max), xml or large CLR type columns in it.

Error Message: Msg 4992, Level 16, State 1, Procedure sp_tableoption, Line 113 Cannot use table option LARGE VALUE TYPES OUT OF ROW on a user table that does not have any of large value types varchar(max), nvarchar(max), varbinary(max), xml or large CLR type columns in it. This option can be applied to tables having large […]

Select statements included within a function cannot return data to a client.

Error Message: Msg 444, Level 16, State 3, Procedure, Line 6 Select statements included within a function cannot return data to a client. Severity level: 16. Description: This error message appears when you return data from a function via an included SELECT statement inside the function. Consequences: The T-SQL statement can be parsed, but causes […]

Cannot create %S_MSG on view “%.*ls” because it contains a HAVING clause. Consider removing the HAVING clause.

Error Message: Msg 10121, Level 16, State 1, Line 2 Cannot create %S_MSG on view “%.*ls” because it contains a HAVING clause. Consider removing the HAVING clause. Severity level: 16. Description: This error message appears when you try to create an index on a view that contains a HAVING clause. Consequences: The T-SQL statement can […]

Cannot create plan guide ‘%.*ls’ because the hints specified in @hints cannot be applied to the statement specified by either @stmt or @statement_start_offset. Verify that the hints can be applied to the statement.

Error Message: Msg 10519, Level 16, State 1, Procedure p, Line 2 Cannot create plan guide ‘%.*ls’ because the hints specified in @hints cannot be applied to the statement specified by either @stmt or @statement_start_offset. Verify that the hints can be applied to the statement. Severity level: 16. Description: This error message appears when you […]

FIPS Warning: The length of identifier ‘%.*ls’ exceeds 18.

Error Message: FIPS Warning: The length of identifier ‘%.*ls’ exceeds 18. FIPS Warning: The length of identifier ‘%.*ls’ exceeds 18. Severity level: 10. Description: This informational error message appears when you try to use an identifier that exceeds the length of 18 characters. Consequences: Resolution: Error of this severity level are informational errors that do […]

Cannot create %S_MSG on view “%.*ls” because it contains a CUBE, ROLLUP, or GROUPING SETS operator. Consider not indexing this view.

Error Message: Msg 10119, Level 16, State 1, Line 2 Cannot create %S_MSG on view “%.*ls” because it contains a CUBE, ROLLUP, or GROUPING SETS operator. Consider not indexing this view. Severity level: 16. Description: This error message appears when you try to create an index on a view that contains a CUBE, ROLLUP, or […]
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 |