473,387 Members | 1,534 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,387 software developers and data experts.

Transactions Tables?

26
I'm hoping someone has done this before.
I have a database in MySql that many members access via PHP.

However, the new person to update this database does not have the drive or desire to learn anything new.

What I would like to do is build an access database where he makes the changes in a familiar environment (access) and sends me a table with all the changes he's made, but ONLY the changes he's made.

My current hosting plan makes it way to difficult to link the tables, so offline updating is the best bet. In addition, they only support MySQL and PostGres.

Can I use Access to build transaction tables for me to receive from him? (A table with the record Number, name of the field changed, and new value would suffice) I.E. {167,Home_Address,155 North 5th Street}

Or can anyone here think of something more simple?

I'm probably really overlooking the simple solution here.
Jan 7 '09 #1
10 1729
NeoPa
32,556 Expert Mod 16PB
I guess it's possible.

What stages of the process do you have control over? Are you about to design the Access database that he'll be using?
Jan 7 '09 #2
TVining
26
Yes, I've started by importing the tables and making his forms, but know I will probably trash them. :-P

Even more simple, could I just mark each record that he changes, and have him export those, and then I could just replace the entire MySQL record. I'm up for that. Just make it so if ANYTHING on a record changes, a YES/NO field is triggered.

Wow, My mind wanders- Would it be feasible to import a table twice (tbl_main and tbl_main1) he changes an address and then when he's done, I compare all data in the table and build the transactions based on any difference?

Arrgh...so many possibilities. ACCESS is just too powerful. Where's my DB3 from DOS days?

Tony
Jan 7 '09 #3
TVining
26
Incidentally, I have full access to the MySQL, and am fairly decent at MS Access, but just need a good kick in the pants to get moving the right direction.

Tony
Jan 7 '09 #4
NeoPa
32,556 Expert Mod 16PB
Welcome to Bytes!

Rereading your post I guess you are, and you also have complete control over the design of the database he'll be using.

OK. Consider maintaining a table which would contain the original data. This would be the same data as the main table at the start point of the whole process. Each update export resets to the start point again of course.

The Export process would have to build up a third table of all differences you need it to log. This would effectively be a table of deltas, that would be exported and sent up to the main web-based (I assume) MySQL database. This process must include resetting the copy table to bring it up-to-date with the latest data. That way the next time the process is run only deltas from that point are registered.

Does this help?
Jan 7 '09 #5
NeoPa
32,556 Expert Mod 16PB
Well Tony, it looks like you beat me to some of these ideas :)

Let me know if you have what you need to get going with.
Jan 7 '09 #6
TVining
26
Okay, now how do i compare each and every field of each and every record to find the deltas? :-P
Jan 7 '09 #7
TVining
26
ahh, I am going to try this: Compare each field the same as a duplicate field, and build the table (Append query) based on only that data which is changed.
Jan 7 '09 #8
NeoPa
32,556 Expert Mod 16PB
@TVining
I'm afraid with such an open question you can only get an open answer. "You process through the various values in code". Not remotely helpful I know.

If you want a more helpful answer then you will need to rephrase the question as a more specific question, rather than something akin to "Please tell me how to do the whole job".

I'm happy to help you along, but remember whose project it is.
Jan 7 '09 #9
NeoPa
32,556 Expert Mod 16PB
@TVining
Ah. I understand you better now. The previous post was your initial (somewhat perturbed) response.

Have a crack at it. Give me a shout if you get stuck (although I'm late to bed now so may not respond until tomorrow).

A possibly helpful tip is to use the "For Each" construct to go through the available fields in a table.

Update us with how you get on.
Jan 7 '09 #10
NeoPa
32,556 Expert Mod 16PB
Remember also with deltas, that it's important to log deletions and additions as well as simple amendments.

How many professional software vendors still need to learn that lesson?!
Jan 7 '09 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

29
by: pb648174 | last post by:
I have a very long transaction that runs on the same database that other users need to use for existing data. I don't care if they see data from the transaction before it is done and am only using...
2
by: gabriel | last post by:
Greetings, I am adding foreign keys to a database and saving the generated scripts. What I do not understand is that all script begin with empty transactions. Why ? Example follows : /*
4
by: Raposa Velha | last post by:
So, chosen the interface for my app, finally I got stuck with transactions. Boy!, how many ways of doing the same job are there?! Any suggestion so I could find myself in the right direction?...
2
by: Adnan | last post by:
Hey Ppl, I'm developing an Online Auction Site using ASP.net and am experiencing a problem with Transactions in ADO.Net. When beginTrasaction() function is invoked from a specific connection,...
3
by: Lada 'Ray' Lostak | last post by:
Hello ppl, Imagine some online system, based on PgSql. There are 'many' parts which depends on each other. I will give small example, but instead of simple table imagine changing tenths various...
2
by: saran | last post by:
I am having a problem with MySQL consuming a lot of memory and eventually throwing an Out of Memory error and restarting itself. The symptoms are that swap usage continues to rise until some...
2
by: Sridhar | last post by:
Hi, I am trying to implement sql transactions. But I am not knowing how to do that. I created a data access layer which contains methods to select/insert/update tables in a database. I have also...
12
by: Rami | last post by:
I have some requirement for an automated payment system. The system has four machines setup as follows: 1- Two machines have a clustered database. 2- Two machines have a .net business logic...
8
by: Allan Ebdrup | last post by:
I've implemented transactions in my dotNet 2.0 project using System.Transactions and TransactionScope. --- TransactionOptions options = new TransactionOptions(); options.IsolationLevel =...
3
by: psycho | last post by:
I am working on an N-tier application using following components: 1. Data Access Layer using DLINQ which consists of Data Context class and Table Mapping classes. 2. Business Logic Layer....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.