Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

How can i make the data transformation in DTS to do an update instead of insert? Expand / Collapse
Author
Message
Posted Tuesday, August 14, 2012 2:04 AM


SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Saturday, April 12, 2014 3:50 AM
Points: 79, Visits: 341
Hi guys,

this is the dilemma im in now. i have to create a DTS package that instead of doing the usual copy columns in data transformation, i need it to perform an update statement instead. Any ideas on how i should move forward with this??

appreciate for any replies..TIA


Cheers!
[url=http://coffeeandsql.com/][/url]

Post #1344557
Posted Thursday, August 23, 2012 2:20 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 9:25 AM
Points: 7,070, Visits: 12,523
I forgot most of my DTS skills but since you have not received any responses I'll make a general suggestion:

Instead of loading the data directly into your target table, load the data into a staging table using the current 'copy columns' method and then issue an UPDATE...JOIN to update your target table from the data in your staging table.


__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato

Believe you can and you're halfway there. --Theodore Roosevelt

Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein

The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein

1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
Post #1349345
Posted Monday, September 10, 2012 6:29 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, March 20, 2014 3:43 AM
Points: 295, Visits: 218
why arent you using SSIS? you can easily do it using SSIS.
Post #1356688
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse