HI Folks,
I have a table - parts_amer and this table exists in source & destination server as well.
CREATE TABLE [dbo].[Parts_AMER](
[ServiceTag] [varchar](30) NOT NULL,
[ComponentID] [decimal](18, 0) NOT NULL,
[PartNumber] [varchar](20) NULL,
[Description] [varchar](400) NULL,
[Qty] [decimal](8, 0) NOT NULL,
[SrcCommodityCod] [varchar](40) NULL,
[PartShortDesc] [varchar](100) NULL,
[SKU] [varchar](30) NULL,
[SourceInsertUpdateDate] [datetime2](7) NOT NULL,
CONSTRAINT [PK_Parts_AMER] PRIMARY KEY CLUSTERED
(
[ServiceTag] ASC,
[ComponentID] ASC
)
)
I need to exec the following query using SSIS components so that only that data ,is transfered,which does not exist at destination -
select source.*
from parts_amer source left join parts_amer destination
on source.ServiceTag = destination.ServiceTag
and source.ComponentID=destination.ComponentID
where destination.ServiceTag is null and destination.ComponentID is null
Question - Can Merge component help with this?
Pl help out.
Thanks.