Server: Msg 121, Level 15, State 1, Line 6
The select list for the INSERT statement contains more items than the insert list. The number of SELECT values must match the number of INSERT columns.
This error message appears when you try to INSERT a row into a table and there are fewer values in the SELECT list than column.
The INSERT statement cannot be committed and is rolled back.
Error of the severity level 15 are generated by the user and can be fixed by the SQL Server user.
All versions of SQL Server.
CREATE TABLE #t
, c2 INT
INSERT INTO #t (c1, c2) SELECT 1
As you can see in the above example the table #t contains the column c1 and c2. In the INSERT statement which is intended to affect both columns c1 and c2, however, there is only 1 value supplied in the SELECT list. In order to successfully run the INSERT statement, you need to correct either the column list or the VALUES list. Both must contain exactly the same number of arguments.