473,398 Members | 2,368 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,398 software developers and data experts.

Synchronizing tables

Hi

We have this access application - which we use to register stuff into.
Most of the time we're online, and that's all right, but now we need
be able to register stuff offline, and then it would be nice if we
could copy the registered stuff into the main database when we get
online.

So basically I want to copy data from one mdb-file to another - and
these two mdb's look the same in design, but have different data. I
figured I could just copy stuff from the offline into the online and
delete everything from the offline afterwards. So I guess what I'm
looking for is some kind of synchronizing tool. I guess that's a long
shot, if you don't know that - do you know how I could connect to the
other db and through code copy everything from the offline db over
into the main database? If there are some neat sql sentences for that
I'd appreciate if you told me about them.

regards

Vegard

Feb 2 '07 #1
4 1681
"Veggis" <ve******@gmail.comwrote in
news:11**********************@k78g2000cwa.googlegr oups.com:
We have this access application - which we use to register stuff
into. Most of the time we're online, and that's all right, but now
we need be able to register stuff offline, and then it would be
nice if we could copy the registered stuff into the main database
when we get online.
There are two ways to accomplish this:

1. have special "provisional" data entry mode for offline entry that
has to be connected to the real data, and synchronized in code, and
assigned non-provisional PKs and so forth, OR

2. use Jet Replication.

If the disconnected users can connect to the "mother ship" via LAN,
it's very easy to just use direct replication. If they can never
connect via LAN (only WAN or Internet or wireless LAN), then
indirect replication is needed. That's substantially more complex.

If I had a client present me the situation you describe, I'd go with
Jet Replication. But then, I've been doing that since 1998.

The simple scenario with laptops that are in the field and then come
back into the office is pretty easy to implement, though.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Feb 3 '07 #2
Thanks a lot!
On 3 Feb, 18:26, "David W. Fenton" <XXXuse...@dfenton.com.invalid>
wrote:
"Veggis" <vegar...@gmail.comwrote innews:11**********************@k78g2000cwa.google groups.com:
We have this access application - which we use to register stuff
into. Most of the time we're online, and that's all right, but now
we need be able to register stuff offline, and then it would be
nice if we could copy the registered stuff into the main database
when we get online.

There are two ways to accomplish this:

1. have special "provisional" data entry mode for offline entry that
has to be connected to the real data, and synchronized in code, and
assigned non-provisional PKs and so forth, OR

2. use Jet Replication.

If the disconnected users can connect to the "mother ship" via LAN,
it's very easy to just use direct replication. If they can never
connect via LAN (only WAN or Internet or wireless LAN), then
indirect replication is needed. That's substantially more complex.

If I had a client present me the situation you describe, I'd go with
Jet Replication. But then, I've been doing that since 1998.

The simple scenario with laptops that are in the field and then come
back into the office is pretty easy to implement, though.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/

Feb 20 '07 #3
On 3 Feb, 18:26, "David W. Fenton" <XXXuse...@dfenton.com.invalid>
wrote:
"Veggis" <vegar...@gmail.comwrote innews:11**********************@k78g2000cwa.google groups.com:
We have this access application - which we use to register stuff
into. Most of the time we're online, and that's all right, but now
we need be able to register stuff offline, and then it would be
nice if we could copy the registered stuff into the main database
when we get online.
There are two ways to accomplish this:
1. have special "provisional" data entry mode for offline entry that
has to be connected to the real data, and synchronized in code, and
assigned non-provisional PKs and so forth, OR
2. use Jet Replication.
If the disconnected users can connect to the "mother ship" via LAN,
it's very easy to just use direct replication. If they can never
connect via LAN (only WAN or Internet or wireless LAN), then
indirect replication is needed. That's substantially more complex.
If I had a client present me the situation you describe, I'd go with
Jet Replication. But then, I've been doing that since 1998.
The simple scenario with laptops that are in the field and then come
back into the office is pretty easy to implement, though.
--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Now I will try to quote correctly. I was wondering, I'm using access -
and I tried making a replica of the "main" database, now I have two
databases excactly same data - one called funtab.mdb and one called
funtab_travel.mdb. Basically my employees travel around the area going
offline, entering new assignments when offline (they sit down with a
customer and enters data), meaning each assignment gets a unique id -
getMaxID + 1 - _meanwhile_ _I_ make a new assignment at the main
database here at the office that gets the same id who was offered to
the employee who was offline.

Does jet replication solve this? I've tried this a little, and didn't
make it work so far.

I assume by jet replication you're refering to the built-in tools of
access? Or am I completely lost here?

regards

Vegard
Mar 9 '07 #4
"Veggis" <ve******@gmail.comwrote in
news:11**********************@n33g2000cwc.googlegr oups.com:
Now I will try to quote correctly. I was wondering, I'm using
access - and I tried making a replica of the "main" database, now
I have two databases excactly same data - one called funtab.mdb
and one called funtab_travel.mdb. Basically my employees travel
around the area going offline, entering new assignments when
offline (they sit down with a customer and enters data), meaning
each assignment gets a unique id - getMaxID + 1 - _meanwhile_ _I_
make a new assignment at the main database here at the office that
gets the same id who was offered to the employee who was offline.

Does jet replication solve this? I've tried this a little, and
didn't make it work so far.
Replication cannot solve this. You'll have to do something else to
insure the sequence is unique. There are three main options:

1. reserve blocks of numbers for each replica.

2. track the source replica as part of the unique identifier.

3. assign temporary numbers in replicas and convert them to the
final sequence in one central replica.

Which of these is the most appropriate for your app is up to you to
determine.
I assume by jet replication you're refering to the built-in tools
of access? Or am I completely lost here?
Well, Access has a simple UI for using the functionality of Jet
Replication, yes.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Mar 10 '07 #5

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

Similar topics

3
by: Keith Veleba | last post by:
Hello to all fellow c.l.p'ers! Long-time listener, first-time caller. Background: I'm working on a project where I have to do some serious multithreading. I've worked up a decorator in Python...
0
by: Ike | last post by:
I have a MySql database I connect through using mysql-connector-...jar under java. I need to co-exist with another MySql database in order to get this one job wherein the fields of the other...
0
by: SQLServer007 | last post by:
25 more days until the "get it free" promotion runs out for xSQL Object (you can get it from http://www.x-sql.com) Here are just some of the great features packed in the product: - Compare SQL...
2
by: abs | last post by:
Hi everybody. My problem: there are two tables. Their columns' widths are set by the content. Do you have any idea how to set the width of the second table's columns to be the same as width of...
1
by: Phil Matish, MCSE | last post by:
I have an Access database that I use frequently. Often, I take it to a home PC, or laptop to work on at night. The next day, I overwrite the old one with the one I have been working on. The...
2
by: Christopher D. Wiederspan | last post by:
We are getting ready to move an ASP.NET application off of a single development machine and onto a "webfarm". Basically our webfarm is a bunch of identical servers with the load-balancing provided...
7
by: Alphonse Giambrone | last post by:
I am not sure if these are the correct groups to post this, so please redirect me if there are better ones. Client has a SQL Server db of organizations and member info that is in pretty much...
4
by: Chris Ochs | last post by:
We have a number of tables in a CRM that is written in MS access that I need to be able to provide a web interface to. I can export the tables just fine using pgadmin II, but I cant' think of a...
2
by: stanond | last post by:
I have a similar problem. I have a form displaying some primary information, this form has six command buttons, each designed to open a form from a different table. I want to associate these records...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.