473,695 Members | 1,566 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Automatic updating of some tables from ftp download

My App has 10 or so tables that we provide that contains proprietary data.
This data will need to be updated once or twice a year.

I would like some comments, suggestions on my proposed strategy for updating
these tables via an ftp site:

1) Post a .mdb file to our ftp web site that contains the updated tables. My
App code connects to the ftp site and gets the file name for any update files
on the site. I already have code to do this and it works fine. My plan is
to have a FTPDownload Table in the backend of My App. It will contain the
name and date of the last update file downloaded. If the current update file
has a later date, it will be downloaded. Should I also keep a separate
record for each table in My App that is updated this way? Not every table in
My App will necessarily need to be updated each time there is a download and
as the developer I may need to know when the last update for each table
occurred not just when an update file was downloaded. Suggestions, advice?
2) If update file is more recent than last update, ask the administrator if
they wish to continue. If so start the forced logoff process to disconnect
everyone from the back-end file. This code is already present in My App.
Also, I’m planning to backup the back-end file from code prior to deleting or
importing any tables.
3) Once the back-end file is backed up, download the update .mdb into a
temporary folder created by code. Use TransferDatabas e to copy the new
tables from the update .mdb to the back-end file, using code in My App. When
should I delete the existing tables before or after the import? If after,
then all of the imported files will need to be renamed because they will have
a “1” at the end.
4) After the update, delete temporary folder that was created to hold the
update .mdb.

What’s the recommended method for initiating this process. Should the code
look for updates every time My App starts up? BTW: Only members of the
Admins group are allowed to update the tables. Should this be manually
initiated by administrators, but they won’t really know when an update is
posted.

Thoughts, recommendations , suggestions are greatly appreciated.

--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200604/1
Apr 26 '06 #1
1 2713
rdemyan via AccessMonster.c om wrote:
My App has 10 or so tables that we provide that contains proprietary data.
This data will need to be updated once or twice a year.

I would like some comments, suggestions on my proposed strategy for updating
these tables via an ftp site:

1) Post a .mdb file to our ftp web site that contains the updated tables. My
App code connects to the ftp site and gets the file name for any update files
on the site. I already have code to do this and it works fine. My plan is
to have a FTPDownload Table in the backend of My App. It will contain the
name and date of the last update file downloaded. If the current update file
has a later date, it will be downloaded. Should I also keep a separate
record for each table in My App that is updated this way? Not every table in
My App will necessarily need to be updated each time there is a download and
as the developer I may need to know when the last update for each table
occurred not just when an update file was downloaded. Suggestions, advice?
2) If update file is more recent than last update, ask the administrator if
they wish to continue. If so start the forced logoff process to disconnect
everyone from the back-end file. This code is already present in My App.
Also, I'm planning to backup the back-end file from code prior to deleting or
importing any tables.
3) Once the back-end file is backed up, download the update .mdb into a
temporary folder created by code. Use TransferDatabas e to copy the new
tables from the update .mdb to the back-end file, using code in My App. When
should I delete the existing tables before or after the import? If after,
then all of the imported files will need to be renamed because they will have
a "1" at the end.
4) After the update, delete temporary folder that was created to hold the
update .mdb.

What's the recommended method for initiating this process. Should the code
look for updates every time My App starts up? BTW: Only members of the
Admins group are allowed to update the tables. Should this be manually
initiated by administrators, but they won't really know when an update is
posted.

Thoughts, recommendations , suggestions are greatly appreciated.

--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200604/1


Several months ago I wrote a database that allows a manufacturing
company to ensure that fabricators are using the most current set of
Prints/CAD Data. It probably saves them several hundred thousand
dollars per year since it is very expensive to build to an obsolete
blueprint. It took about two weeks to write. Someone in the CAD
department was given the assignment of maintaining a limited-access
directory on the server containing the most up-to-date manufacturing
data available. Once the JobID is selected on the main form, a subform
fills with the latest posted set of filenames. When the 'Create IPDR'
(IPDR stands for Inspection Plan Data Register) command button was
clicked, Access deleted the files in a public directory on the server
(created if not present) and copied the files on the subform from the
control directory to the public directory along with a PDF file
(created by Access) showing the names of the current files and any
files marked as obsolete (not copied to the public directory). Since
some of the data files are in the several hundred Meg range it caused
high network loads to update the data files. The reasoning behind the
change was that a few files added to the list or changed shouldn't
require the entire set to be replaced. I was also told that different
individuals had responsibility for different jobs and thus concurrency
would not be an issue.

I added a checkbox to the subform called 'Freshen' that comes up
unchecked when the file list is brought in. Any new files chosen from
the combobox on the subform (recordsourced to a function that gets the
filenames from the control directory) or any edits to the record cause
the 'Freshen' field to check. I explained that by using the 'Freshen'
field they were taking more responsibility upon themselves to know
exactly which files have been updated. Now when 'Create IPDR' is
clicked, Access deletes any files from the target directory that are
not contained in the subform's RecordsetClone or that have 'Freshen' or
'Obsolete' checked. Afterward, only the files marked 'Freshen' are
copied to the target directory. When using FTP to transfer files I
always use a different name until after the files have been
transferred. Hopefully this will give you some ideas.

James A. Fortune
CD********@Fort uneJames.com

May 1 '06 #2

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

Similar topics

3
2086
by: Todd Cary | last post by:
Some of my clients would like to have a way to update text and tables in their HTML pages without the need for or understanding of complicated updating programs. Does such a program exist? My concept is to have tags embedded within the page that would be recognized by the application. Transparently the "tagged areas" would be updated using nothing more that Excel and or Word (everything behind the scene would be done automatically -...
5
2370
by: Shane | last post by:
I wonder if someone has any ideas about the following. I am currently producing some reports for a manufacturing company who work with metal. A finished part can contain multiple sub-parts to make up the finished part. The sub-parts can also be made up of sub-parts and those sub-parts can also be made up of sub-parts etc etc. All parts are contained within the same table and I have a seperate table
14
1372
by: WindAndWaves | last post by:
Hi Gurus I have been working on a rather sophisticated update procedure for FEs of my application that are spread throughout the country. Now, I recently thought: WHAT IF I identify all the objects in the database (may it be tables, queries, forms, etc.....ie. NOT BE tables) that have been changed recently.
0
2577
by: jmd | last post by:
Hello. I want to write a C# program that does completely automatically what, until now, I do manually, witch is describe below : 1. I launch IE (6) 2. I browse to my desired download page, say http://www.site.com/download This download page contains some textboxes, checkboxes, radiobuttons, a DOWNLOAD BUTTON and text 3. I check some checkboxes, select some radiobuttons, enter text in some textboxes and click on the download button
2
1870
by: Trygve Lorentzen | last post by:
Hi, I'm developing an app with automatic version checking and updating. It must also track what version is installed for each customer in our customer database. I have made a small client to fetch updated file(s) from the net and copy over the old files. I figured this must be done since the program itself will be read/write locked as long as it is running. I have a progressbar prgDownload that shows the download progress. My main...
18
16394
by: jmd | last post by:
Hello, I posted the following in the C# forum but without one answer. But perhaps now in vb.net someone has some guidelines ! This is my question : I want to write a vb.net program that does completely automatically what, until now, I do manually, witch is describe below : 1. I launch IE (6)
4
5089
by: Philip Nelson | last post by:
Folks, I've got a database and tablespaces "managed by automatic storage". I've deleted a lot of data from some tables. I've then reorged them. But the tablespaces don't appear to shrink in size (they just have lots of free space). How can I get DB2 to give the space back ?
5
2087
by: aaron.m.johnson | last post by:
I have an application which contains an Access database with linked tables that point to another database within the application. The problem I have is that when the user installs the application, I need to update the table links so that the paths are correct for the install directory. Is there an easy way to accomplish this? I'd really like to avoid duplicating the data in the linked tables, but if updating the links is too much work,...
4
1987
by: rdemyan via AccessMonster.com | last post by:
My application is calculation intensive and the servers are agonizingly slow. Administrators of my application only update the backends once a month (twice a month max). So, my launching program allows the back-end file to be downloaded to the user's PC. This will provide maximum speed for these calculations/manipulations of data. Without this, just logging into the main app connected to the server back-end file can take five minutes...
0
8565
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
9113
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
8977
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8839
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,...
1
6488
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
5837
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
4577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2997
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
2
2269
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.