HELP!!! I have an insert statement that is failing. Here is the criterion.
INSERT INTO TEMP1 (name, address, phone)
SELECT DISTINCT name, address, phone FROM XML_TEMP1
Right now, table TEMP1 only has 4 columns
sequence_number (autoincrementing key)
name
address
phone
XML_TEMP1 has 3 keys
name
address
phone
The error that I get is
Server: Msg 515, Level 16, State 2, Line 6
Cannot insert the value NULL into column 'SEQUENCE_NUMBER', table 'Testing.dbo.TEMP1; column does not allow nulls. INSERT fails.
The statement has been terminated.
Any ideas?
INSERT INTO TEMP1 (name, address, phone)
SELECT DISTINCT name, address, phone FROM XML_TEMP1
Right now, table TEMP1 only has 4 columns
sequence_number (autoincrementing key)
name
address
phone
XML_TEMP1 has 3 keys
name
address
phone
The error that I get is
Server: Msg 515, Level 16, State 2, Line 6
Cannot insert the value NULL into column 'SEQUENCE_NUMBER', table 'Testing.dbo.TEMP1; column does not allow nulls. INSERT fails.
The statement has been terminated.
Any ideas?