SQL Server Errors

UNION ALL view ‘%.*ls’ is not updatable because the primary key of table ‘%.*ls’ is not included in the union result.

Error Message: Msg 4444, Level 16, State 10, Line 1 UNION ALL view ‘%.*ls’ is not updatable because the primary key of table ‘%.*ls’ is not included in the union result. Severity level: 16. Description: This error message appears when you try to update a UNION ALL view but the primary key of at least […]

UNION ALL view ‘%.*ls’ is not updatable because column ‘%.*ls’ of base table ‘%.*ls’ is used multiple times.

Error Message: Msg 4443, Level 16, State 8, Line 1 UNION ALL view ‘%.*ls’ is not updatable because column ‘%.*ls’ of base table ‘%.*ls’ is used multiple times. Severity level: 16. Description: This error message appears when you try to update a UNION ALL view but at least one column of an underlying base table […]

The TABLESAMPLE clause can only be used with local tables.

Error Message: Msg 494, Level 16, State 1, Line 4 The TABLESAMPLE clause can only be used with local tables. Severity level: 16. Description: This error message appears when you try to use the TABLESAMPLE clause with a non-local table. Consequences: The T-SQL statement can be parsed, but causes the error at runtime. Resolution: Errors […]

Foreign key references to temporary tables are not supported. Foreign key ‘%.*ls’.

Error Message: Msg 1766, Level 16, State 0, Line 3 Foreign key references to temporary tables are not supported. Foreign key ‘%.*ls’. Severity level: 16. Description: This error message appears when you try to create a foreign key constraint referencing a temporary table. Consequences: The T-SQL statement can be parsed, but causes the error at […]

The %S_MSG ‘%.*ls’ is out of the range for numeric representation (maximum precision 38).

Error Message: Msg 1007, Level 15, State 1, Line 3 The %S_MSG ‘%.*ls’ is out of the range for numeric representation (maximum precision 38). Severity level: 15. Description: This error message appears when a numerischer Wert ausserhalb des Bereiches für die Darstellung numerischer Werte liegt. Consequences: The SQL statement cannot be parsed and further execution […]

Cannot create foreign key ‘%.*ls’ because it references object ‘%.*ls’ whose clustered index ‘%.*ls’ is disabled.

Error Message: Msg 1771, Level 16, State 1, Line 12 Cannot create foreign key ‘%.*ls’ because it references object ‘%.*ls’ whose clustered index ‘%.*ls’ is disabled. Severity level: 16. Description: This error message appears when you try to create a foreign key constraint referencing a table whose clustered index is disabled. Consequences: The T-SQL statement […]

Syntax error: Duplicate specification of the action “%.*s” in the trigger declaration.

Error Message: Msg 1034, Level 15, State 1, Procedure, Line 2 Syntax error: Duplicate specification of the action “%.*s” in the trigger declaration. Severity level: 15. Description: This error message appears when in a trigger definition the event for which the trigger should fire is specified more than once. Consequences: The SQL statement cannot be […]

Cannot create the foreign key ‘%.*ls’ because the referenced column ‘%.*ls.%.*ls’ is a non-persisted computed column.

Error Message: Msg 1784, Level 16, State 1, Line 9 Cannot create the foreign key ‘%.*ls’ because the referenced column ‘%.*ls.%.*ls’ is a non-persisted computed column. Severity level: 16. Description: This error message appears when you try to create a foreign key constraint referencing a non-persisted computed column. Consequences: The T-SQL statement can be parsed, […]

All queries combined using a UNION, INTERSECT or EXCEPT operator must have an equal number of expressions in their target lists.

Error Message: Msg 205, Level 16, State 1, Line 1 All queries combined using a UNION, INTERSECT or EXCEPT operator must have an equal number of expressions in their target lists. Severity level: 16. Description: This error message appears when you try to run a UNION, INTERSECT or EXCEPT query that has not an equal […]

An object or column name is missing or empty. For SELECT INTO statements, verify each column has a name. For other statements, look for empty alias names. Aliases defined as “” or [] are not allowed. Add a name or single space as the alias name.

Error Message: Msg 1038, Level 15, State 5, Line 1 An object or column name is missing or empty. For SELECT INTO statements, verify each column has a name. For other statements, look for empty alias names. Aliases defined as “” or [] are not allowed. Add a name or single space as the alias […]
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 |