XML Bulk Load does not Overwrite Existing Records - XML SOAP

This is a discussion on XML Bulk Load does not Overwrite Existing Records - XML SOAP ; I am having problems with XML Bulk Load. I am doing the bulk load multiple times, but I was expecting the new data to overwrite the existing records if the new record has the same value for the primary key ...

+ Reply to Thread
Results 1 to 2 of 2

XML Bulk Load does not Overwrite Existing Records

  1. Default XML Bulk Load does not Overwrite Existing Records

    I am having problems with XML Bulk Load. I am doing the bulk load
    multiple times, but I was expecting the new data to overwrite the
    existing records if the new record has the same value for the primary
    key as the existing one. However, the XML bulk load does not
    overwrite, it keeps the old records and I get "The statement has been
    terminated" in my log. Is there way to accomplish what I wanted using
    XML bulk load, i.e., always overwrite the old record if the new record
    has the same primary key value as the old one ? The reason I wanted to
    do this was that the data in the columns other than the primary key
    column might have different values every time, so I want to keep the
    most recent data in the table.

    Thanks very much.


  2. Default Re: XML Bulk Load does not Overwrite Existing Records

    That is not the purpose of the XML Bulkload. You may want to look into
    updategrams or write your own logic...

    Best regards
    Michael

    <guxu@hotmail.com> wrote in message
    news:1134146895.630165.165350@z14g2000cwz.googlegroups.com...
    >I am having problems with XML Bulk Load. I am doing the bulk load
    > multiple times, but I was expecting the new data to overwrite the
    > existing records if the new record has the same value for the primary
    > key as the existing one. However, the XML bulk load does not
    > overwrite, it keeps the old records and I get "The statement has been
    > terminated" in my log. Is there way to accomplish what I wanted using
    > XML bulk load, i.e., always overwrite the old record if the new record
    > has the same primary key value as the old one ? The reason I wanted to
    > do this was that the data in the columns other than the primary key
    > column might have different values every time, so I want to keep the
    > most recent data in the table.
    >
    > Thanks very much.
    >




+ Reply to Thread

Similar Threads

  1. Replies: 1
    Last Post: 02-02-2007, 04:51 AM
  2. Replies: 0
    Last Post: 02-01-2007, 09:16 PM
  3. WebDAV & overwrite an existing task
    By Application Development in forum Microsoft Exchange
    Replies: 12
    Last Post: 09-12-2006, 01:41 AM
  4. SQLXML Bulk Load - Server cannot load DCOM
    By Application Development in forum XML SOAP
    Replies: 5
    Last Post: 03-31-2006, 01:23 PM
  5. XML bulk load can't load a huge file
    By Application Development in forum XML SOAP
    Replies: 7
    Last Post: 07-26-2005, 06:12 PM