Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Loading Data from Staging Table to Parent and child tables

$
0
0
Hi,
I am trying to load data fro mSTaging table (No Primary Key as it's from the csv file) but in Child table and it's inserting all the Parent Kel column value, just picking up last value, see the code below:

DECLARE @DCID INT, -- Parent Key

Viewing all articles
Browse latest Browse all 3145

Trending Articles