Re: How to transfer data to another site and update data later on

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Emily (Emily_at_discussions.microsoft.com)
Date: 10/13/04


Date: Wed, 13 Oct 2004 14:25:50 -0700

The recordset is pulled from different tables by joining the foreign keys
with the main table. None of them has a column with timestamp datatype( I
guess this is the datatype that you refer to as there is no RowVersion
datatype in SQL Server 7.0) .
Correct me if I'm wrong.

All tables that are used to get the recordset have a primary key in integer
datatype like an autonumber but not include in the recordset.

Does it mean we should add an additional column to trigger if there is any
change?

Thank you very much for your help.

Emily

"Rick Sawtell" wrote:

> Without looking at your table structures and how the data is handled, I
> couldn't tell you.
>
> How would you do it normally?
>
> You could use a RowVersion datatype in the tables at both sites and then
> compare them. For RowVersions that are different, you could perform your
> updates on those rows.
>
> HTH
>
> Rick Sawtell
>
>
> "Emily" <Emily@discussions.microsoft.com> wrote in message
> news:B40AE998-4ABF-4DC8-8954-4F0E938018C3@microsoft.com...
> > Thanks for your help. But how can I tell which record has changes and
> > requires to do an update to the TX's database?
> >
> > B.Regards,
> > Emily
> >
> > "Rick Sawtell" wrote:
> >
> > > Take a look at DTS if you want to try to automate the process.
> > >
> > > If you would like to do it by hand, I would suggest that you use bcp to
> move
> > > the data out to a flat file, WinZip the file and ship it. On the TX
> > > system, bcp that new data into a staging table and then perform your
> > > updates.
> > >
> > > Note: Before performing your updates, you should probably back up the
> TX
> > > database. That way if you really do something strange, you can quickly
> undo
> > > it.
> > >
> > > Rick Sawtell
> > > MCT, MCSD, MCDBA
> > >
> > >
> > > "Emily" <Emily@discussions.microsoft.com> wrote in message
> > > news:6CDB8949-4450-4F4E-9A07-F67950847298@microsoft.com...
> > > > I have a project that requires to send dataset that meet certain
> criteria
> > > > stored in SQL Server 7.0 in my office at L.A. to the parent company's
> SQL
> > > > Server 2000 at TX and then update parent's dataset that has been sent
> > > before
> > > > monthly for whatever changes that have been made over the time. Can
> > > somebody
> > > > teach me a way how to do it? As I don't know which record what data
> value
> > > has
> > > > been changed at our office over the time so as to update the dataset
> at
> > > TX's
> > > > SQL Server. It definitely will have changes. Also our SQL Server has
> > > limited
> > > > resource and the transmitted dataset will be about 400-500K records at
> the
> > > > first population.
> > > >
> > > > Thank you in advance for your help.
> > >
> > >
> > >
>
>
>



Relevant Pages

  • Re: Updating disconnected recordset
    ... Is you CAMPID field ... I'm going to assume it is a text datatype, you may want to specify that ... > the recordset and depending on logic update the empty field with a value. ... > Set con = New ADODB.Connection ...
    (microsoft.public.vb.database.ado)
  • Re: BinaryStream.Write ByteArray erroring with Code 800A0BB9, Source ADODB.Stream
    ... I made the changes to the script using your code, ... Date datatype. ... return value was added or deleted from the recordset, ... oRsrefers to the sixth column in the recordset. ...
    (microsoft.public.scripting.vbscript)
  • Re: BinaryStream.Write ByteArray erroring with Code 800A0BB9, Source ADODB.Stream
    ...  I made the changes to the script using your code, ... Date datatype. ... return value was added or deleted from the recordset, ... oRsrefers to the sixth column in the recordset. ...
    (microsoft.public.scripting.vbscript)
  • Re: Sorting a disconected recordset
    ... What you said was write because the DataType i was specifiying was adBStr thats why it was giving me the error, Now if i use the adVarChar and specify the Defined Size then the Sorting works fine. ... >> populating the recodset with some data, by opening the recordset with the ... >> But whenever i use the Sort Property to sort the Field it gives the ...
    (microsoft.public.data.ado)