Quantcast
Channel: Microsoft Dynamics RMS Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4248

TABLE COPY VIA SQL

$
0
0

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.


Viewing all articles
Browse latest Browse all 4248

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>