473,789 Members | 2,624 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1715
"Veggis" <ve******@gmail .comwrote in
news:11******** **************@ k78g2000cwa.goo glegroups.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 "provisiona l" 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...@dfen ton.com.invalid >
wrote:
"Veggis" <vegar...@gmail .comwrote innews:11****** *************** *@k78g2000cwa.g ooglegroups.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 "provisiona l" 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...@dfen ton.com.invalid >
wrote:
"Veggis" <vegar...@gmail .comwrote innews:11****** *************** *@k78g2000cwa.g ooglegroups.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 "provisiona l" 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.m db. 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.goo glegroups.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.m db. 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
2536
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 2.3.4 to implement the lock semantics required for specific functions I want to synchronize:
0
1270
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 database can map to fields in my database. For example, they have a customers table as does mine. There may be some differences in the fields and such, but, in broad strokes, the tables are redundant. I cannot, however, rewrite this application to...
0
1985
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 Server objects (databases, tables, views, stored procedures, user defined data functions etc.) accross servers. - view and print dependencies; - generate color coded scripts for any object in the database or many of them at once (many configurable...
2
2257
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 adequate columns in the first table ? Best regards, ABS
1
1562
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 only problem is - during this time, others may want to add records at the office. This causes an obvious data loss problem if I overwrite their edition of the database. Is there a way to synchronize the database? If someone made additions at...
2
3720
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 by a network appliance. What I'm wondering is what is the best way to keep the ASP.NET (.aspx and .dll) files synchronized across all of the servers in the farm. Our ASP.NET application is very simple - we could just copy the content to all of...
7
1129
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 constant use at his location. He would like to make the maintenance of adding/editing member info available on the web. Since the data contains personal info the web app (built in ASP.NET) will use SSL. The unique identifier for a member is the...
4
1784
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 clean way to import them from postgresql back to access. Synchronizing only needs to happen once a day at the most. I was also thinking of using the MS access forms with access tables that are just odbc links to the postgresql database. Does...
2
1179
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 with the form displaying the primary information. Relationships are as follows; Primary Information ID is set to all other tables ID. On my first attempt, if I did not enter data to one of the other tables opened by the command button, an auto ID was...
0
10408
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10139
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9020
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7529
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5417
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4092
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.