Is it possible to Copy over PurchaseOrderEntry via SQL to Another Database on the Server
Note Both are functional and working, Using names Database as Reference
I tried a command as
USE DATABASE2
GO
INSERT INTO PurchaseOrderEntry
SELECT *
FROM DATABASE1.DBO.PurchaseOrderEntry
Results
Msg 8101, Level 16, State 1, Line 1
An explicit value for the identity column in table 'PurchaseOrderEntry' can only be specified when a column list is used and IDENTITY_INSERT is ON.
Then tried
USE DATABASE2
GO
SET IDENTITY_INSERT PurchaseOrderEntry ON
INSERT INTO PurchaseOrderEntry
SELECT *
FROM DATABASE1.DBO.PurchaseOrderEntry
Results
Msg 8101, Level 16, State 1, Line 2
An explicit value for the identity column in table 'PurchaseOrderEntry' can only be specified when a column list is used and IDENTITY_INSERT is ON.
*This post is locked for comments