How do I update all the records in a table from the contents of another table?

Ok some situation information, I have a pervasive database that runs our accounting software that I am pulling a product list from.  I have that list stored in a table in SQL.  From time to time we update the records in the pervasive database and
I want to be able to pull those changes into the SQL table.  I don't want to drop the table and recreate it because if a product is no longer active in the pervasive database it will not be returned by the query (if I return all the products even the
inactive ones I will get thousands of records rather than just a few hundred) and I do not want to loose the products from the table that are now inactive.  
So what I want to be able to do is pull the list from pervasive, compare it to the list that exists in SQL and update any changed records, add any new records, and leave any now missing records alone(missing from the pervasive list but present in the SQL
list).  I have no trouble pulling the records from pervasive (now) but I am a little stumped on how to do the rest.  I am not sure if this is a situation to use MERGE or not.  I also do not really need this to be done on a regular basis as the
changes do not happen often enough for that, the ability to manually trigger it would be enough.
Any help would be appreciated.
David

Hi David,
lets say you want to go with the lookup transformation.
lets say u want to move the data from server A table A1 to Server B table B1
What you need to do is the following:
Cofigure the Lookup options as follows:
- In general -> Specify how to handle rows with no macthing entries -> "Redirect Rows to no Match Output"
-  In Connection -> Set the ole db connection to the Server B and select the table B you want to lookup the values in your case the table where you want to input the changes 
-  In columns -> link the product column from table A to product column in table B. And do not select any rows to output.
- now your component is ready next you need to input. so when u connect your lookup to the destination component You will get an option to select which output you want to use - use "Lookup No Match Output".
this will actually just allow you to add only new items only to the table B.
Teddy Bejjani - BI Specialist @ Netways

Similar Messages

  • I have an iPod, iPhone and iPad all set up to a Dell laptop. I recently got a Macbook Pro, how do I transfer all my control for my devices from the Dell to the MacBook?

    I have an iPod, iPhone and iPad all set up to a Dell laptop. I recently got a Macbook Pro, how do I transfer all my control for my devices from the Dell to the MacBook?  Can anyone help?

    http://www.apple.com/support/switch101/
    http://www.macworld.com/article/1153952/superguide_switchingtoamac.html

  • How do you copy all podcast information (new/deleted/downloaded) from one computer to another.

    I am changing my itunes computer and am trying to move my podcast subscriptions from the old machine to the new one.
    I want the new computer to know
    * which podcasts feeds I have subscribed to
    * which podcasts I have deleted
    * which podcasts I currently have downloaded on the old machine, so it can download them on the new machine.
    Currently I have only been able to get the feeds transferred.  The trouble with this is that this only automatically downloads the most recent entry - even of the podcasts that I am completely up to date with and have already seen that episode.  And, for the ones where I am not up to date, unless I can transfer the information, I am going to have to go through and manually delete the episodes I've already watched.  (and unfortunately it's not just a case of finding where I'm up to and deleting all previous episodes (some podcasts are out of order, some I want to relisten to) )
    Is there any way of doing this?  Old machine has iTunes 8.2, new machine has iTunes 10.2

    Thanks - I used the Layer > Duplicate command and it worked great!
    P.S. How do you drag and drop a layer? I tried dragging a layer to the other open image, but nothing happened. Do you have to hold down a specific key for this (I'm using Windows)?

  • How can i move ALL of my Iphoto/aperture pictures from the internal hd to a external hd at one session?  just need to how to do this. (I know this is a long process; just looking for a faster method).

    looking for a way other than post and click. 

    I'm not at all sure what you mean by "post and click", but if you wish to move your entire iPhoto Library, then follow these steps:
    http://support.apple.com/kb/PH2506
    As far as I know, you can set up Aperture to access its library on an external drive; I tried to find some info for you and found this support site for it - you might want to check it out. Also, you might want to check the manual on how to move the library.
    http://www.apple.com/support/aperture/

  • Records have been deleted from the table.

    Hi all ,
    If records have been deleted from the table that any log file maintains the history as following Way.
    User Name who delete the records.
    Machine name where the command is execute.
    The command syntax e.g delete from abc where ……..
    or any other help related to mentioned problem.
    Regards,
    Mobeen.

    Wrong forum .. your question doesnt make much sense.
    But take a look at Oracle Auditing.

  • How to update all condition records at a time with some percentage or some

    Dear Sir,
    In PRD system we have more than 600 condtion records.
    Noe desiel hikes happend, due to that client want to update all condition records(600) at a time with required percentage or required value.
    How to update all records at a time
    With regards
    Lakshmikanth

    Hi,
    Through BDC or LSMW first you have to do the recording for particular transaction code and then base on that u have to prepare the flat file to upload the file for the same.
    For BDC programing you have to take the help of ABAP progmer but LSMW you can also do.
    For more information about LSMW plz go to following link :
    [LSMW |http://www.slideshare.net/arun_bala1/sap-sd-lsmw-legacy-system-migration-workbench/]
    [Step-by-Step Guide for using LSMW|www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc ]
    BDC
    [BDC Call Transaction|http://www.sapdevelopment.co.uk/bdc/bdc_ctcode.htm]
    [BDC Recording|http://www.sapdevelopment.co.uk/bdc/bdc_recording.htm]
    But it would be better for you to please contact to your ABAPer for BDC programming.
    Cheers...

  • How can I update all photos to LR5. Last update from LR4.5 did not upgrade the files in LR4.5 folder

    How can I update ALL photos to LR5. form LR4.5.I have reinstalled LR5 to to trigger the up date to no avail.

    In the Lightroom menu, go to file/open catalog.  Locate your Lightroom 4 catalog and choose it.  Lightroom will create a new copy of that catalog in the format for Lightroom 5.

  • How Can I Know All History Record For Any Form ??

    How Can I Know All History Record And Updates About Any Form By User Names And Times Or What About Log Files ??

    Duplicate post.
    How Can I Know All History Record For Any Form ??
    Re: How Can I Know All History Record For Any Form ??

  • Have 3 Ipads how can I update all without download each time

    I have 3 IPads one one computer how can I update all without downloading for each one ?

    If they are the same model (iPad 1, iPad 2 wifi, iPad 2 CDMA, or ipad 2 GSM/sim) then for the second and third devices just press hold the shift key on windows, or the command key on a Mac, when clicking on the Check For Updates button in iTunes, and then navigate to the IPSW file - if they are different models then I believe that each model has a different update file.

  • How can I view all duplicate records

    Hello everyone,
    My question is very straight forward. How can I view all duplicate records?
    Thanks in advance,
    Sonya

    If you want to see duplicate records in a table and how many you have you can do something like this:
    Select all of the columns in the table and look for those having more than one row. If you're more concerned
    about duplicate keys than each column individual column being the same just select the key columns.
    select c1, c2, c3,..., count(*)
    from table
    group by c1, c2, c3...
    having count(*)>1
    order by c1, c2, c3...
    If you eventually want to get rid of the duplicates you can issue:
    delete from table t1
    where rowid not in
    (select max(rowid)
    from table t2
    where t1.c1 = t2.c1
    and t1.c2 = t2.c2...)
    Where c1, c2, c3... match your column list from the select statement above.
    HTH

  • I updated my iPod and it erased everything i had on it.  How do i retrieve the songs that i bought from the iTunes store?  when i try to download/buy them again they tell me i have already purchased them do i want to buy them again?

    I updated my iPod and it erased everything i had on it.  How do i retrieve the songs that i bought from the iTunes store?  when i try to download/buy them again they tell me i have already purchased them do i want to buy them again?  I have authorized my computer but none of them are in my music now.

    You buy one and only one download.
    It is your responsibility to move/copy/backup your music.
    Certainly you did not update your ipod without making sure that you had transferred anything purchased on the ipod to your computer and included it in your regular backup copy of your computer.

  • Recently got a new computer and downloaded iTunes.  All of my music has downloaded from the cloud witht the exception of one song.  I have tried transferring from my phone, but it won't work.  How do I get it back without having to download again?

    Recently got a new computer and downloaded iTunes.  All of my music has downloaded from the cloud witht the exception of one song.  I have tried transferring from my phone, but it won't work.  How do I get it back without having to download again?
    Thanks.

    If you do not have access to the iTunes Library on your Old computer... or its Backup...
    See these 2 Links...
    Syncing to a New Computer...
    https://discussions.apple.com/docs/DOC-3141
    Recovering your iTunes library from your iPod or iOS device
    https://discussions.apple.com/docs/DOC-3991
    If you do have access... See Here...
    iTunes: How to move your music to a new computer
    Or...
    From your OLD computer...
    Copy your ENTIRE iTunes FOLDER to an External Drive... and then from the External Drive to your New Computer..
    Full Details Here  >  http://support.apple.com/kb/HT1751
    An Added Bonus is that you will have a Backup of iTunes.

  • How do I add multiple songs to an existing playlist from the (no longer called) Library? Highlighting multiple songs and clicking the "Add to" button will only add the with the little arrow, not all the highlighted ones!

    How do I add multiple songs to an existing playlist from the (no longer called) Library? Highlighting multiple songs and clicking the "Add to" button will only add the one with the little arrow, not all the highlighted ones! I am using the "new" iTunes.

    For the moment there isn't a way for us end-users to control what is "matched" or "uploaded." That is purely a result of Apple's server-side algorithms.
    To re-add multiple songs at once simply highlight all the songs you want to re-add, then right-click (or Control+click) the list and choose "add to iCloud."

  • How do I combine all my calendars into one and delete the others?

    I have a work computer, a home desktop, and Apple air laptop and an 1phone 4s.
    I use Outlook calendar for all my appointments and only need one calendar.
    When I get notifications of my upcoming events on the Oulook page and on my iphone, I get multiple notifications, sometimes as many as 6 times.
    How can I combine all my calendars into one and delete the others?

    Your old account is the one you migrated, but it has been renamed because the new account had the same name. "Fixing" this is a bit complicated. It is possible to transfer data from one account to the other. See Transferring files from one User Account to another.
    A cleaner solution is to do this:
    Create a temporary new admin user account with a completely different username.
    Log into this new account.
    Delete the new account you created before migrating.
    Delete the old account you migrated that has the changed name.
    Re-migrate your old account from the Mini.
    Log into the newly migrated account and delete the temporary account.
    And, the simplest solution is to use the migrated account as-is and delete the account you originally made on the new computer.

  • How can I delete all this information, or can I restore the Ipod?

    My daughter is 9 has an Ipod. I put my email on his device and than she have access to all my contacts and messages. Question: How can I delete all this information, or can I restore the Ipod? Second question: How can I create an e-mail for her, in order she has access to Face Time, Imessages and download games, but I need to have track of this?

    Have a look here...
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l

  • HT204152 I am unable to update my App  store Updations. the reason being billing problem asking to update payment method.many times i updated my credit card details but refusing from the system .how can i update my app store updations like  Face book etc.

    I am unable to update my App  store Updations. the reason being billing problem asking to update payment method.Many a  times i updated my credit card details but refusing from the system .how can i update my app store updations like  Face book etc....Using ! phone 6plus  .IOS8.3

    What do you mean by 'refusing from the system', if you are getting an error message then what does it say ?
    For a credit card to have a chance of being accepted it needs to be registered to the same name and address (including format and spacing etc) that you have on your iTunes account, and have been issued by a bank in the country where you and your iTunes account are. If it is and if you are getting a 'declined' message then you could check with the card issuer to see if it's them that are declining it, and if not then try contacting iTunes Support (these are user-to-user forums) and see if they know why it's being declined : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    If when trying to download you are getting a message about a 'problem with a previous purchase' then that implies that iTunes wasn't able to collect the money for your last purchase. If that is the case then you won't be able to download anything else (including app updates) until you've paid off what you owe : Pay an unpaid balance in the iTunes Store - Apple Support
    If you aren't getting the 'problem with a previous purchase' message then try logging into your account (not when trying to download something) and see if you get the 'none' option so that you can remove the card's details and be able to download updates to your apps : Change or remove your payment information from your iTunes Store account (Apple ID) - Apple Support

Maybe you are looking for