Home » error 2 sql server

error 2 sql server

sql server DBA 999

SQL Server Error : 120, Severity: 15. The select list for the INSERT statement

SQL Server Error : 120 Details

SQL Server Error: 120 Severity: 15 Event Logged or not: No Description: The select list for the INSERT statement contains fewer items than the insert list. The number of SELECT values must match the number of INSERT columns. Severity 15 Description: Indicates syntax errors in the Transact-SQL command.

Cause for the Error

This issue happens when the number of values supplied in the VALUES Select Statement is less than the number of columns specified in an INSERT to a table using the INSERT INTO… VALUES format, as described in the error message.

The following INSERT statement, for example, will result in an error:

INSERT Into [Alpha] ( [Name], [LastName], Read the rest