Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

get selected data from one db to another db

$
0
0

Hi,

In sql server I have two different databases  .In database1 I have two tables(das1(client ID's FK) and clients1(ID PK) )with primary foreign key relationships.In database2   I have same tables  with some data(das2,clients2)but das2 has some rows are missing I want to get those rows from das1

INSERT INTO Test.dbo.Table_1
SELECT * FROM Emp.dbo.WorkStatus where  wid=5

An explicit value for the identity column in table 'Test.dbo.Table_1' can only be

specified when a column list is used and IDENTITY_INSERT is ON.

IDENTITY_INSERT is ON  on the table  even it shows this error


Viewing all articles
Browse latest Browse all 8428

Trending Articles



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