473,385 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Best Way to Synch 2 Tables?

All,

I have an Access DB. On a nightly basis, I want to look at an Other
DB (not Access, but SQL) and:

+ Add any new records from Other.Clients into Access.Clients
Update 9 fields from Other.Clients into Access.Clients where changes have occured in Other.Clients.
Is this something I should use a "tool" (SQL Data Compare, SqlSync,
etc.) to do, or could I pull this off reliably every night just using
SQL from the query I could construct to do the job from inside my
Access DB?

And for question Deux, if I can just use the SQL I will write, what's
the best way to kick off the process at 3:00 am every morning?

Thanks,

Patrick

Nov 8 '07 #1
14 2004
On Thu, 08 Nov 2007 14:32:15 -0800, Patrick A <pa*****@stradley.com>
wrote:
>I have an Access DB. On a nightly basis, I want to look at an Other
DB (not Access, but SQL) and:
+ Add any new records from Other.Clients into Access.Clients
>Update 9 fields from Other.Clients into Access.Clients where changes have occured in Other.Clients.
Is this something I should use a "tool" (SQL Data Compare, SqlSync,
etc.) to do, or could I pull this off reliably every night just using
SQL from the query I could construct to do the job from inside my
Access DB?
And for question Deux, if I can just use the SQL I will write, what's
the best way to kick off the process at 3:00 am every morning?
Yes, this can be done all in Access (via a macro that runs the
queries), although someone's PC will have to be logged in at 3:00am
for it to happen. Once those conditions are set up, use Scheduler to
run the macro at 3:00am. See Access Help for the command line on how
to run a macro when the database is opened.

You could also do this all in SQL with a scheduled job, but the server
will need the rights to the person's PC the MDB is on.

Which is better? without knowing more about your application and the
network, I really can't say.

Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!
Nov 10 '07 #2
Thanks, Chuck.

When you say "use Scheduler", you mean the Windows Task Scheduler,
a.k.a. Control Panel / Add Scheduled Task?

Patrick

On Nov 10, 4:26 pm, Chuck Grimsby <c.grim...@worldnet.att.net.invalid>
wrote:
On Thu, 08 Nov 2007 14:32:15 -0800, Patrick A <park...@stradley.com>
wrote:
I have an Access DB. On a nightly basis, I want to look at an Other
DB (not Access, but SQL) and:
+ Add any new records from Other.Clients into Access.Clients
Update 9 fields from Other.Clients into Access.Clients where changes have occured in Other.Clients.
Is this something I should use a "tool" (SQL Data Compare, SqlSync,
etc.) to do, or could I pull this off reliably every night just using
SQL from the query I could construct to do the job from inside my
Access DB?
And for question Deux, if I can just use the SQL I will write, what's
the best way to kick off the process at 3:00 am every morning?

Yes, this can be done all in Access (via a macro that runs the
queries), although someone's PC will have to be logged in at 3:00am
for it to happen. Once those conditions are set up, use Scheduler to
run the macro at 3:00am. See Access Help for the command line on how
to run a macro when the database is opened.

You could also do this all in SQL with a scheduled job, but the server
will need the rights to the person's PC the MDB is on.

Which is better? without knowing more about your application and the
network, I really can't say.

Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!

Nov 12 '07 #3
>although someone's PC will have to be logged in at 3:00am
for it to happen. Once those conditions are set up, use Scheduler to
run the macro at 3:00am.
The computer only needs to be on, not logged in for Windows Task Scheduler
to run the code. You will need to supply Scheduler a name and password.
Nov 12 '07 #4

Yes, Correct. The Windows Task Scheduler.

As Ron mentioned, the computer doesn't really need to be logged in for
this happen, but the scheduler will need a *valid* login (and
password!) to run. This can be a problem on some networks that
enforce a regular password change, as the user will have to remember
to change the password in the scheduler as well whenever they change
their password.
A better solution, if you can get the Network Administrator to agree,
is to set up a user and password that never changes to run this task.
Remember however, that the "fixed" user will need access to the
database and the SQL database.

On Mon, 12 Nov 2007 10:57:28 -0800, Patrick A <pa*****@stradley.com>
wrote:
>Thanks, Chuck.

When you say "use Scheduler", you mean the Windows Task Scheduler,
a.k.a. Control Panel / Add Scheduled Task?

Patrick

On Nov 10, 4:26 pm, Chuck Grimsby <c.grim...@worldnet.att.net.invalid>
wrote:
>On Thu, 08 Nov 2007 14:32:15 -0800, Patrick A <park...@stradley.com>
wrote:
>I have an Access DB. On a nightly basis, I want to look at an Other
DB (not Access, but SQL) and:
+ Add any new records from Other.Clients into Access.Clients
Update 9 fields from Other.Clients into Access.Clients where changes have occured in Other.Clients.
Is this something I should use a "tool" (SQL Data Compare, SqlSync,
etc.) to do, or could I pull this off reliably every night just using
SQL from the query I could construct to do the job from inside my
Access DB?
And for question Deux, if I can just use the SQL I will write, what's
the best way to kick off the process at 3:00 am every morning?

Yes, this can be done all in Access (via a macro that runs the
queries), although someone's PC will have to be logged in at 3:00am
for it to happen. Once those conditions are set up, use Scheduler to
run the macro at 3:00am. See Access Help for the command line on how
to run a macro when the database is opened.

You could also do this all in SQL with a scheduled job, but the server
will need the rights to the person's PC the MDB is on.

Which is better? without knowing more about your application and the
network, I really can't say.

Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!
Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!
Nov 12 '07 #5
Thanks for the tips. I think I can get the network admin to agree, he
doesn't want to get up at 3:00 am either.

Can I check out my macro/query logic with you?

With 2 db's, A and B:

I want to look up existing records in B and Update them from A
I want find records in A that meet my criteria and don't exist in B
and Append them to B
I don't want to delete any records from B or A.

So, is it "better" for me to write one macro that calls the Update
query and the Append query, (really, I think, a combination of "find
unmatched" and append queries), or two macros, (one calling the next),
or does it matter?

Thanks,

Patrick

On Nov 12, 6:11 pm, Chuck Grimsby <c.grim...@worldnet.att.net.invalid>
wrote:
Yes, Correct. The Windows Task Scheduler.

As Ron mentioned, the computer doesn't really need to be logged in for
this happen, but the scheduler will need a *valid* login (and
password!) to run. This can be a problem on some networks that
enforce a regular password change, as the user will have to remember
to change the password in the scheduler as well whenever they change
their password.
A better solution, if you can get the Network Administrator to agree,
is to set up a user and password that never changes to run this task.
Remember however, that the "fixed" user will need access to the
database and the SQL database.

On Mon, 12 Nov 2007 10:57:28 -0800, Patrick A <park...@stradley.com>
wrote:


Thanks, Chuck.
When you say "use Scheduler", you mean the Windows Task Scheduler,
a.k.a. Control Panel / Add Scheduled Task?
Patrick
On Nov 10, 4:26 pm, Chuck Grimsby <c.grim...@worldnet.att.net.invalid>
wrote:
On Thu, 08 Nov 2007 14:32:15 -0800, Patrick A <park...@stradley.com>
wrote:
I have an Access DB. On a nightly basis, I want to look at an Other
DB (not Access, but SQL) and:
+ Add any new records from Other.Clients into Access.Clients
Update 9 fields from Other.Clients into Access.Clients where changes have occured in Other.Clients.
Is this something I should use a "tool" (SQL Data Compare, SqlSync,
etc.) to do, or could I pull this off reliably every night just using
SQL from the query I could construct to do the job from inside my
Access DB?
And for question Deux, if I can just use the SQL I will write, what's
the best way to kick off the process at 3:00 am every morning?
Yes, this can be done all in Access (via a macro that runs the
queries), although someone's PC will have to be logged in at 3:00am
for it to happen. Once those conditions are set up, use Scheduler to
run the macro at 3:00am. See Access Help for the command line on how
to run a macro when the database is opened.
You could also do this all in SQL with a scheduled job, but the server
will need the rights to the person's PC the MDB is on.
Which is better? without knowing more about your application and the
network, I really can't say.
Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!

Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!- Hide quoted text -

- Show quoted text -

Nov 13 '07 #6
Assuming you will be appending only a limited number of records, I would
lean towards doing the append 1st so that the update selection becomes
simple. But more important, consider using VBA and running the 2 queries
inside a Transaction. You will then know that both queries run and can send
a message on fail.

"Patrick A" <pa*****@stradley.comwrote in message
news:11*********************@d55g2000hsg.googlegro ups.com...
Thanks for the tips. I think I can get the network admin to agree, he
doesn't want to get up at 3:00 am either.

Can I check out my macro/query logic with you?

With 2 db's, A and B:

I want to look up existing records in B and Update them from A
I want find records in A that meet my criteria and don't exist in B
and Append them to B
I don't want to delete any records from B or A.

So, is it "better" for me to write one macro that calls the Update
query and the Append query, (really, I think, a combination of "find
unmatched" and append queries), or two macros, (one calling the next),
or does it matter?

Thanks,

Patrick

On Nov 12, 6:11 pm, Chuck Grimsby <c.grim...@worldnet.att.net.invalid>
wrote:
Yes, Correct. The Windows Task Scheduler.

As Ron mentioned, the computer doesn't really need to be logged in for
this happen, but the scheduler will need a *valid* login (and
password!) to run. This can be a problem on some networks that
enforce a regular password change, as the user will have to remember
to change the password in the scheduler as well whenever they change
their password.
A better solution, if you can get the Network Administrator to agree,
is to set up a user and password that never changes to run this task.
Remember however, that the "fixed" user will need access to the
database and the SQL database.

On Mon, 12 Nov 2007 10:57:28 -0800, Patrick A <park...@stradley.com>
wrote:


>Thanks, Chuck.
>When you say "use Scheduler", you mean the Windows Task Scheduler,
>a.k.a. Control Panel / Add Scheduled Task?
>Patrick
>On Nov 10, 4:26 pm, Chuck Grimsby <c.grim...@worldnet.att.net.invalid>
>wrote:
>On Thu, 08 Nov 2007 14:32:15 -0800, Patrick A <park...@stradley.com>
>wrote:
>I have an Access DB. On a nightly basis, I want to look at an Other
>DB (not Access, but SQL) and:
>+ Add any new records from Other.Clients into Access.Clients
>Update 9 fields from Other.Clients into Access.Clients where
changes have occured in Other.Clients.
>Is this something I should use a "tool" (SQL Data Compare, SqlSync,
>etc.) to do, or could I pull this off reliably every night just
using
>SQL from the query I could construct to do the job from inside my
>Access DB?
>And for question Deux, if I can just use the SQL I will write,
what's
>the best way to kick off the process at 3:00 am every morning?
>Yes, this can be done all in Access (via a macro that runs the
>queries), although someone's PC will have to be logged in at 3:00am
>for it to happen. Once those conditions are set up, use Scheduler to
>run the macro at 3:00am. See Access Help for the command line on how
>to run a macro when the database is opened.
>You could also do this all in SQL with a scheduled job, but the
server
>will need the rights to the person's PC the MDB is on.
>Which is better? without knowing more about your application and the
>network, I really can't say.
>Please Post Any Replies To This Message Back To the Newsgroup.
>There are "Lurkers" around who can benefit by our exchange!
Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!- Hide quoted
text -

- Show quoted text -


Nov 13 '07 #7
Thanks,

Hmmm...

running the 2 queries inside an Access Transaction?

In the help it mentions that "Transactions are not supported for
linked tables."

I bet I forgot to mention that the "A" table will be linked...

So what if I
- Write the code (including the bit to email me if the SQL fails) into
the "OnOpen" event of a form
- Put the form in a db and have the form load when the db opens
- Schedule a 3:00 am task of "Start Acces and open mydatarobot.mdb"

Unless there's a simpler/smarter way...
On Nov 13, 9:53 am, "paii, Ron" <n...@no.comwrote:
Assuming you will be appending only a limited number of records, I would
lean towards doing the append 1st so that the update selection becomes
simple. But more important, consider using VBA and running the 2 queries
inside a Transaction. You will then know that both queries run and can send
a message on fail.

"Patrick A" <park...@stradley.comwrote in message

news:11*********************@d55g2000hsg.googlegro ups.com...
Thanks for the tips. I think I can get the network admin to agree, he
doesn't want to get up at 3:00 am either.
Can I check out my macro/query logic with you?
With 2 db's, A and B:
I want to look up existing records in B and Update them from A
I want find records in A that meet my criteria and don't exist in B
and Append them to B
I don't want to delete any records from B or A.
So, is it "better" for me to write one macro that calls the Update
query and the Append query, (really, I think, a combination of "find
unmatched" and append queries), or two macros, (one calling the next),
or does it matter?
Thanks,
Patrick
On Nov 12, 6:11 pm, Chuck Grimsby <c.grim...@worldnet.att.net.invalid>
wrote:
Yes, Correct. The Windows Task Scheduler.
As Ron mentioned, the computer doesn't really need to be logged in for
this happen, but the scheduler will need a *valid* login (and
password!) to run. This can be a problem on some networks that
enforce a regular password change, as the user will have to remember
to change the password in the scheduler as well whenever they change
their password.
A better solution, if you can get the Network Administrator to agree,
is to set up a user and password that never changes to run this task.
Remember however, that the "fixed" user will need access to the
database and the SQL database.
On Mon, 12 Nov 2007 10:57:28 -0800, Patrick A <park...@stradley.com>
wrote:
Thanks, Chuck.
When you say "use Scheduler", you mean the Windows Task Scheduler,
a.k.a. Control Panel / Add Scheduled Task?
Patrick
On Nov 10, 4:26 pm, Chuck Grimsby <c.grim...@worldnet.att.net.invalid>
wrote:
On Thu, 08 Nov 2007 14:32:15 -0800, Patrick A <park...@stradley.com>
wrote:
I have an Access DB. On a nightly basis, I want to look at an Other
DB (not Access, but SQL) and:
+ Add any new records from Other.Clients into Access.Clients
Update 9 fields from Other.Clients into Access.Clients where

changes have occured in Other.Clients.
Is this something I should use a "tool" (SQL Data Compare, SqlSync,
etc.) to do, or could I pull this off reliably every night just
using
SQL from the query I could construct to do the job from inside my
Access DB?
And for question Deux, if I can just use the SQL I will write,
what's
the best way to kick off the process at 3:00 am every morning?
Yes, this can be done all in Access (via a macro that runs the
queries), although someone's PC will have to be logged in at 3:00am
for it to happen. Once those conditions are set up, use Scheduler to
run the macro at 3:00am. See Access Help for the command line on how
to run a macro when the database is opened.
You could also do this all in SQL with a scheduled job, but the
server
will need the rights to the person's PC the MDB is on.
Which is better? without knowing more about your application and the
network, I really can't say.
Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!
Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!- Hide quoted
text -
- Show quoted text -- Hide quoted text -

- Show quoted text -- Hide quoted text -

- Show quoted text -

Nov 13 '07 #8
Transactions will work on linked Jet "Access" tables if both tables are in
the same MDB file. If they are not, VBA will at least allow you to check and
report if one or both of the queries fail.

No need for a form, put the code in a module and use a macro to call the
function.

"Patrick A" <pa*****@stradley.comwrote in message
news:11**********************@o3g2000hsb.googlegro ups.com...
Thanks,

Hmmm...

running the 2 queries inside an Access Transaction?

In the help it mentions that "Transactions are not supported for
linked tables."

I bet I forgot to mention that the "A" table will be linked...

So what if I
- Write the code (including the bit to email me if the SQL fails) into
the "OnOpen" event of a form
- Put the form in a db and have the form load when the db opens
- Schedule a 3:00 am task of "Start Acces and open mydatarobot.mdb"

Unless there's a simpler/smarter way...
On Nov 13, 9:53 am, "paii, Ron" <n...@no.comwrote:
Assuming you will be appending only a limited number of records, I would
lean towards doing the append 1st so that the update selection becomes
simple. But more important, consider using VBA and running the 2 queries
inside a Transaction. You will then know that both queries run and can
send
a message on fail.

"Patrick A" <park...@stradley.comwrote in message

news:11*********************@d55g2000hsg.googlegro ups.com...
Thanks for the tips. I think I can get the network admin to agree, he
doesn't want to get up at 3:00 am either.
Can I check out my macro/query logic with you?
With 2 db's, A and B:
I want to look up existing records in B and Update them from A
I want find records in A that meet my criteria and don't exist in B
and Append them to B
I don't want to delete any records from B or A.
So, is it "better" for me to write one macro that calls the Update
query and the Append query, (really, I think, a combination of "find
unmatched" and append queries), or two macros, (one calling the next),
or does it matter?
Thanks,
Patrick
On Nov 12, 6:11 pm, Chuck Grimsby <c.grim...@worldnet.att.net.invalid>
wrote:
Yes, Correct. The Windows Task Scheduler.
As Ron mentioned, the computer doesn't really need to be logged in
for
this happen, but the scheduler will need a *valid* login (and
password!) to run. This can be a problem on some networks that
enforce a regular password change, as the user will have to remember
to change the password in the scheduler as well whenever they change
their password.
A better solution, if you can get the Network Administrator to
agree,
is to set up a user and password that never changes to run this
task.
Remember however, that the "fixed" user will need access to the
database and the SQL database.
On Mon, 12 Nov 2007 10:57:28 -0800, Patrick A <park...@stradley.com>
wrote:
>Thanks, Chuck.
>When you say "use Scheduler", you mean the Windows Task Scheduler,
>a.k.a. Control Panel / Add Scheduled Task?
>Patrick
>On Nov 10, 4:26 pm, Chuck Grimsby
<c.grim...@worldnet.att.net.invalid>
>wrote:
>On Thu, 08 Nov 2007 14:32:15 -0800, Patrick A
<park...@stradley.com>
>wrote:
>I have an Access DB. On a nightly basis, I want to look at an
Other
>DB (not Access, but SQL) and:
>+ Add any new records from Other.Clients into Access.Clients
>Update 9 fields from Other.Clients into Access.Clients where
changes have occured in Other.Clients.
>Is this something I should use a "tool" (SQL Data Compare,
SqlSync,
>etc.) to do, or could I pull this off reliably every night just
using
>SQL from the query I could construct to do the job from inside
my
>Access DB?
>And for question Deux, if I can just use the SQL I will write,
what's
>the best way to kick off the process at 3:00 am every morning?
>Yes, this can be done all in Access (via a macro that runs the
>queries), although someone's PC will have to be logged in at
3:00am
>for it to happen. Once those conditions are set up, use
Scheduler to
>run the macro at 3:00am. See Access Help for the command line on
how
>to run a macro when the database is opened.
>You could also do this all in SQL with a scheduled job, but the
server
>will need the rights to the person's PC the MDB is on.
>Which is better? without knowing more about your application and
the
>network, I really can't say.
>Please Post Any Replies To This Message Back To the Newsgroup.
>There are "Lurkers" around who can benefit by our exchange!
Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!- Hide
quoted
text -
- Show quoted text -- Hide quoted text -
- Show quoted text -- Hide quoted text -

- Show quoted text -


Nov 13 '07 #9
Chuck Grimsby <c.*******@worldnet.att.net.invalidwrote in
news:fp********************************@4ax.com:
A better solution
would be Jet replication, seems to me.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Nov 13 '07 #10
On Tue, 13 Nov 2007 15:51:11 -0600, "David W. Fenton"
<XX*******@dfenton.com.invalidwrote:
>Chuck Grimsby <c.*******@worldnet.att.net.invalidwrote in
news:fp********************************@4ax.com :
>A better solution

would be Jet replication, seems to me.
I've never trusted Jet replication. No specific reason, I just don't
trust it. I'd rather "roll my own". Personally, I have enough
experience doing it, so it's not a problem.

Your milage may vary, of course.

And as this is replication with a SQL Server DB, I'm not sure that it
would work anyways....

Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!
Nov 14 '07 #11
Chuck Grimsby <c.*******@worldnet.att.net.invalidwrote in
news:k5********************************@4ax.com:
On Tue, 13 Nov 2007 15:51:11 -0600, "David W. Fenton"
<XX*******@dfenton.com.invalidwrote:
>>Chuck Grimsby <c.*******@worldnet.att.net.invalidwrote in
news:fp********************************@4ax.co m:
>>A better solution

would be Jet replication, seems to me.

I've never trusted Jet replication. No specific reason, I just
don't trust it. I'd rather "roll my own". Personally, I have
enough experience doing it, so it's not a problem.
You've programmed your own merge replication? That's pretty
impressive. I've done master/slave manual replication and that's
hard enough (deletes are the hardest).
Your milage may vary, of course.

And as this is replication with a SQL Server DB, I'm not sure that
it would work anyways....
Jet 4 can be a merge subscriber of SQL Server before 2005. They
removed that from 2005, because Microsoft hates Jet Replication and
wants to kill it entirely.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Nov 14 '07 #12
On Wed, 14 Nov 2007 14:02:05 -0600, "David W. Fenton"
<XX*******@dfenton.com.invalidwrote:
>Chuck Grimsby <c.*******@worldnet.att.net.invalidwrote in
news:k5********************************@4ax.com :
>On Tue, 13 Nov 2007 15:51:11 -0600, "David W. Fenton"
<XX*******@dfenton.com.invalidwrote:
>>>Chuck Grimsby <c.*******@worldnet.att.net.invalidwrote in
news:fp********************************@4ax.com :

A better solution

would be Jet replication, seems to me.

I've never trusted Jet replication. No specific reason, I just
don't trust it. I'd rather "roll my own". Personally, I have
enough experience doing it, so it's not a problem.

You've programmed your own merge replication? That's pretty
impressive. I've done master/slave manual replication and that's
hard enough (deletes are the hardest).
Replication isn't all that hard, David. It's just a matter of marking
what changes when, and then updating both databases with the changes.

As for deletes... I don't allow deletes in my databases. Users can
*mark* records as being deleted, but they aren't allowed to actually
delete anything. Not only does it make sense as far as replication is
concerned, but it also resolves those issues where a user "deletes"
something accidentally.

Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!
Nov 16 '07 #13
Chuck Grimsby <c.*******@worldnet.att.net.invalidwrote in
news:1q********************************@4ax.com:
On Wed, 14 Nov 2007 14:02:05 -0600, "David W. Fenton"
<XX*******@dfenton.com.invalidwrote:
>>Chuck Grimsby <c.*******@worldnet.att.net.invalidwrote in
news:k5********************************@4ax.co m:
>>On Tue, 13 Nov 2007 15:51:11 -0600, "David W. Fenton"
<XX*******@dfenton.com.invalidwrote:

Chuck Grimsby <c.*******@worldnet.att.net.invalidwrote in
news:fp********************************@4ax.co m:

A better solution

would be Jet replication, seems to me.

I've never trusted Jet replication. No specific reason, I just
don't trust it. I'd rather "roll my own". Personally, I have
enough experience doing it, so it's not a problem.

You've programmed your own merge replication? That's pretty
impressive. I've done master/slave manual replication and that's
hard enough (deletes are the hardest).

Replication isn't all that hard, David. It's just a matter of
marking what changes when, and then updating both databases with
the changes.
It's *very* hard *if* both databases can update any data in any
record at any time.
As for deletes... I don't allow deletes in my databases. Users
can *mark* records as being deleted, but they aren't allowed to
actually delete anything. Not only does it make sense as far as
replication is concerned, but it also resolves those issues where
a user "deletes" something accidentally.
That is, of course, the easiest way to handle it, but not all apps
use that approach.

I think you're *vastly* underestimating the level of difficulty of
N-way merge replication that preserves all edits in all instances of
your data file.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Nov 16 '07 #14
On Fri, 16 Nov 2007 16:40:00 -0600, "David W. Fenton"
<XX*******@dfenton.com.invalidwrote:
>Chuck Grimsby <c.*******@worldnet.att.net.invalidwrote in
news:1q********************************@4ax.com :
>On Wed, 14 Nov 2007 14:02:05 -0600, "David W. Fenton"
<XX*******@dfenton.com.invalidwrote:
>>>Chuck Grimsby <c.*******@worldnet.att.net.invalidwrote in
news:k5********************************@4ax.com :

On Tue, 13 Nov 2007 15:51:11 -0600, "David W. Fenton"
<XX*******@dfenton.com.invalidwrote:

>Chuck Grimsby <c.*******@worldnet.att.net.invalidwrote in
>news:fp********************************@4ax.c om:
>
>A better solution
>
>would be Jet replication, seems to me.

I've never trusted Jet replication. No specific reason, I just
don't trust it. I'd rather "roll my own". Personally, I have
enough experience doing it, so it's not a problem.

You've programmed your own merge replication? That's pretty
impressive. I've done master/slave manual replication and that's
hard enough (deletes are the hardest).

Replication isn't all that hard, David. It's just a matter of
marking what changes when, and then updating both databases with
the changes.

It's *very* hard *if* both databases can update any data in any
record at any time.
>As for deletes... I don't allow deletes in my databases. Users
can *mark* records as being deleted, but they aren't allowed to
actually delete anything. Not only does it make sense as far as
replication is concerned, but it also resolves those issues where
a user "deletes" something accidentally.

That is, of course, the easiest way to handle it, but not all apps
use that approach.

I think you're *vastly* underestimating the level of difficulty of
N-way merge replication that preserves all edits in all instances of
your data file.
And I think you're *vastly* overestimating the level of difficulty,
David, but this isn't really worth discussing anymore.

All I can say is that I haven't had too many problems so far. Mostly
just "collisions" which have to be solved "manually", just as in any
other form of replication.

As I've oft said before: "your milage may vary".

Happy coding!

Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!
Nov 19 '07 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: steve | last post by:
Hi, I finally figured out the best way to synch local and remote script folders, containing many php script files. What I used to do before was try to ftp all the changed files, etc. which was...
0
by: moko | last post by:
This is a bit long-winded. Can somebody read thru these 2 use cases, and tell me if it is feasible ? :- Use Case : Replication before Offline Synch Scenario 1 : Oracle Server , MSDE client ...
3
by: BPDudeMan | last post by:
Hi There, I've got one table that is constantly being added to (every few seconds). I've got a bunch of users that need to report from this table. What's the best way to setup the tables? ...
3
by: Rob | last post by:
Rather new to vb.net... I am wondering if the following is possible and sounds reasonable... Can connection objects and datasets be defined once (at program load) and be available for the life...
5
by: Rob | last post by:
I have a form where the user may see a matrix of data in a grid (populated via a dataset). If the user wishes to add a new row of data, they click a button and a new form opens where the user may...
2
by: sfeher | last post by:
Hi All, I am having trouble big times figuring out a way of forcing a DIV to be in synch with another DIV's height in a (mostly vertically) fluid layout in a web app context. The first one has...
2
by: piggy | last post by:
Hello, I have an application and when a user clicks on it, it first will check to see if the there is a new version in the server using files synch (ftp). If there is then download the new...
2
yashg
by: yashg | last post by:
I am building a data backup application in C# using Sockets. It has a server component and a client component. The client is going to upload files to the server through TCP sockets. I've got all...
1
by: Patrick A | last post by:
All, I have an Access DB. On a nightly basis, I want to look at an Other DB (not Access, but SQL) and: + Add any new records from Other.Clients into Access.Clients Is this something I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.