I need updation through Data transformation Packages.
I trying to update database with DTs packages and right know source and destination databases both are developed using sql serevr 2000 but on two different machines.
Package execute successfully and when i check the database table at destination it shows :
previous un-updated data with new updated rows as an new record....which i don't know how :(
previously it has 3 rows with status =0 and after execution it has 6 rows 3 with status = 0 and 3 with status =1
Transform Data Task's Query:
UPDATE employeeTb SET status = 1 WHERE status = 0
Source table script:
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[employeeTb]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[employeeTb] GO CREATE TABLE [dbo].[employeeTb] ( [employId] [int] IDENTITY (1, 1) NOT NULL , [name] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [pass] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [status] [int] NULL ) ON [PRIMARY] GO
Destination table script:
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[employeeTb]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[employeeTb] GO CREATE TABLE [dbo].[employeeTb] ( [employId] [int] IDENTITY (1, 1) NOT NULL , [name] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [pass] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [status] [int] NULL ) ON [PRIMARY] GO
I have NO idea way this in happening