473,651 Members | 2,533 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tierd structure advice

Hi I am putting together a functional specification in preparation for
writing a VB Dot Net upgrade an existing Access (VBA) and VB system.

It is currently a tiered system with an IBM AS400 providing a DB2 Database.
There are 5 or 6 of sites and each site has 2 to 6 PCs (involved in this
system). One PC on each site acts as an application server and sub database
server, ie it is an MS Access Application that is scheduled to run approx
every hour and when it runs, it downloads several files from the AS400 and
deletes old records, updates existing records and appends new records into
and Access MDB database file. It then downloads certain data to Access files
on the other PCs on the site. Each PC must be capable of operating even when
the local site server is unavailable so each PC has its own database.

The site server is required because when the PCs process records, a copy of
the record is saved in the Site server database and some transactions
require access to previously saved records (possibly from a different PC).
Also some of the processing to and from the AS400 is not fast and rather
than letting every PC call for a download of data each hour we are using the
site servers to disseminate the data.

OK you can see it is fairly complex and it is even more so at the PC level.
We are hoping to simplify some of this by replacing the access databases at
PC level with DataSets and XML files.

My question refers to structure at the server level. Initially I thought
that I should retain the Access MDB file at the site server to accomadate
the multiple PCs writing records to it and using the Jet Engine to take care
of record locking (there should not be much chance of record being changed
by more than one PC).

This morning I was thinking that possibly this could all be achieved with
DataSets and XML? Could the AS400 downloaded data be held in an XML file and
when new records are posted the XML file is re-written? I know it could but
how do I handle multiple PCs that may try to write records simultaneously?
Am I better sticking with Access MDB at this level?

Thanks for any advice.

Doug

The other
Nov 21 '05 #1
3 1281
Doug,

This looks like a disconnected PDA application.

For that are often used datasets on every PDA.
(That is exactly one of the reasons the dataset is designed for)

Important for the complexity is where is taken the action to delete
datarows.

A delete from the central database is normally not registered and therefore
you have to do a complete refresh from your dataset everytime.

I read in your message that you ask if a dataset is updatatable.
Yes in memory, however not on disk or whatever media.
There it has to be written completly new everytime again.

Just some thoughts (not an advice) I had reading your message.

Cor
Nov 21 '05 #2
"Doug Bell" <dug@bigpond> wrote in message
news:uh******** ******@TK2MSFTN GP12.phx.gbl...
<<>>
OK you can see it is fairly complex and it is even more so at the PC
level.
We are hoping to simplify some of this by replacing the access databases
at
PC level with DataSets and XML files. <<>> This morning I was thinking that possibly this could all be achieved with
DataSets and XML?


Seems to me that the access database holds data and is used for some
processing.
The datasets and xml would be used to....
Hold some data and carry out some processing.
Ummmm.... so that'd be better because??

On the face of it, you're talking of swopping an efficient dbms (Access) for
a less efficient file system.
So I would think that there's at least the potential this xml and dataset
solution will offer no benefit and some negatives.

--
Regards,
Andy O'Neill
Nov 21 '05 #3
Thanks for your comments Andy.

We have found loading data from DB2 to Access (Server) quite slow accross
the network, ie Delete Old records, Update Existing and Append new.
Performance was improved when we used an intermediatory temporary table to
dump all current records into and then use it to do the Delete/Update/Append
and we also found that using a Make Table Query faster than Appending to an
empty Table but one problem with Access is that it doesn't clean up very
efficiently so we started using compact on close. This causes a problem
about 1 in 1000 closes in that it can not rename the compacted DB and then
requires some manual support.

Streaming to a DataSet seems faster so I will keep the Access MDB at Server
level and fill it by streaming to a DataSet and then (in the background)
itterating through it to delete old records, update current and append new
records to the Access Tables.

Doug

"Andy O'Neill" <ao************ ***@lycos.co.uk > wrote in message
news:y5******** ************@fe 3.news.blueyond er.co.uk...
"Doug Bell" <dug@bigpond> wrote in message
news:uh******** ******@TK2MSFTN GP12.phx.gbl...
<<>>
OK you can see it is fairly complex and it is even more so at the PC
level.
We are hoping to simplify some of this by replacing the access databases
at
PC level with DataSets and XML files. <<>>
This morning I was thinking that possibly this could all be achieved with DataSets and XML?


Seems to me that the access database holds data and is used for some
processing.
The datasets and xml would be used to....
Hold some data and carry out some processing.
Ummmm.... so that'd be better because??

On the face of it, you're talking of swopping an efficient dbms (Access)

for a less efficient file system.
So I would think that there's at least the potential this xml and dataset
solution will offer no benefit and some negatives.

--
Regards,
Andy O'Neill

Nov 21 '05 #4

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

Similar topics

9
5327
by: FISH | last post by:
Ever have one of those days when you're not sure if it's you who's gone mad, or the rest of the world? I have an Open Source project on SourceForge for communication with YSMG - Yahoo's IM protocol. I keep the project source in three directories, based upon the code's function: one for the network API code itself, one for the support APIs (basic chat spam filtering, Swing models, rich text decoders, etc), and one for the test client...
0
1194
by: rwwff | last post by:
I'm wanting to convert/import an ancient, custom coded (in c) language database into mysql. I understand the mechanics of the process on both sides, but I need advice on the performance ramifications. Essentially the database is a core record with some identifying info and a very large spreadsheet of line by line data; as well as some relational hooks into other, more typical tables. The problem is that I'd like to know whether to...
0
279
by: Mark Stokes | last post by:
Hi there, I wanted a bit of advice on a program (a prototype) that I am trying to write that uses threads. I will outline what I am attempting to do, and if anyone has any advice on the way I am trying to work I would be most grateful. I am writing a windows forms application. This application defines a class, lets call this myObject. I instanciate objects of this class and store the myObjects in an ArrayList.
1
1316
by: meganrobertson22 | last post by:
Hi Everybody- I am trying to create a Table structure to represent the relationship between Agencies and their Sub-Agencies. There are Agencies and Sub-Agencies. Some Agencies have Sub-Agencies and some don't.
3
3163
by: ChadDiesel | last post by:
Hello everyone. I need some advice on table structure for a new project I've been given. One of our customers sends us an Excel spreadsheet each week containing their order. Currently, someone formats the spreadsheet, prints it out, and manually picks out the products we need to ship. I want to import this into an Access table. Basically, the sheet with some data examples looks something like this: ...
11
2405
by: Mannequin* | last post by:
Hi all, I'm working on a quick program to bring the Bible into memory from a text file. Anyway, I have three questions to ask. First, is my implementation of malloc () correct in the program to follow? Second, have I correctly passed the structure's pointer to the functions in this program?
3
3166
by: Sigmathaar | last post by:
Hi, I'm need some advice about lists and vectors. I'm doing a program who needs to have sequential access of a non ordered unit of objects whose size decreases almost each time the sequence is finished (at the begining I have about 2500 objects in the unit, after the first acces I have 2499, then 2435, then 1720 and so on). The problem is that sometimes after a whole sequence the number of objects in the unit remains unchanged. After...
10
4983
by: David Fort | last post by:
Hi, I'm upgrading a VB6 app to VB.net and I'm having a problem with a call to a function provided in a DLL. The function takes the address of a structure which it will fill in with values. I get an error: ---------------- An unhandled exception of type 'System.NullReferenceException' occured in
5
575
by: pt | last post by:
Hi, i am wonderng what is faster according to accessing speed to read these data structure from the disk in c/c++ including alignment handling if we access it on little endian system 32 bits system + OS e.g. Windows, Linux, WinCE. I am not quite sure about the alignment of the memory.... soln. 1: should be faster, I am not sure. idx size (bytes) 1 4
0
8349
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8275
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8795
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...
0
8576
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
7296
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...
0
5609
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
4143
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
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.