TomBarrand
Programmer
I have got the following SQL statement:
INSERT INTO FOB
SELECT *
FROM FOB, Purch_Ord_Line
WHERE FOB.Purch_Ord_Line_No = Purch_Ord_Line.Purch_Ord_Line_No AND Purch_Ord_Line.Purch_Ord_No = 1885 AND Purch_Ord_Line.Revision_No = 0
but I get the error message below when I execute it:
Server: Msg 8101, Level 16, State 1, Line 1
An explicit value for the identity column in table 'FOB' can only be specified when a column list is used and IDENTITY_INSERT is ON.
Any ideas?
INSERT INTO FOB
SELECT *
FROM FOB, Purch_Ord_Line
WHERE FOB.Purch_Ord_Line_No = Purch_Ord_Line.Purch_Ord_Line_No AND Purch_Ord_Line.Purch_Ord_No = 1885 AND Purch_Ord_Line.Revision_No = 0
but I get the error message below when I execute it:
Server: Msg 8101, Level 16, State 1, Line 1
An explicit value for the identity column in table 'FOB' can only be specified when a column list is used and IDENTITY_INSERT is ON.
Any ideas?