SunQuest
           Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 4th, 2003, 08:44 AM
pgscott pgscott is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Australia
Posts: 3 pgscott User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
primary keys and replication

Hello All,

I am attempting to write a point of sale program
bassed on mysql, and ms access for the front end of the back office. since I will have two stores each with there own server with a copy of the database and adding records to the (say transaction table).

Is there some way to get a unique key so the transaction table can be replicated. or is it just better to duplicate the tables.

I read something about creating a two column primary key, although I am not sure if microsoft access can handle it.

Any thoughts would be appreciated.
Peter
Many thanks

Reply With Quote
  #2  
Old July 5th, 2003, 10:42 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
You can define composite primary keys in MS Access. Which database will be the `main` database? What sort of `issue(s)` are your confronted with?

Reply With Quote
  #3  
Old July 5th, 2003, 11:51 PM
pgscott pgscott is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Australia
Posts: 3 pgscott User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ok,
Then if I understand correctly all I have to is for each table that could be modified in a different location, is to compose a primary key, which is a composite of locationid and an autoincreament. Then I don't have to worry about replication creating duplicate primary keys. I had planned on using ysql with innodb tables as the main database, and using access to enter the supplier purchase orders, and querys for daily sales etc. For the clients (the pos terminals in the shop) I was going to use qt and c++.

But I am very open to suggestions and advice

Many thanks
Peter

Reply With Quote
  #4  
Old July 6th, 2003, 02:07 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
What issues exist to using MySQL for both the front end and query tool? This would eliminate you having to integrate to distinct backends.

Reply With Quote
  #5  
Old July 7th, 2003, 05:18 AM
pgscott pgscott is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Australia
Posts: 3 pgscott User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I actually thought that using the ms access as the backend gui would be quicker. But to be honest the more normal the database is the harder it seems to get ms access to do the right thing. So perhaps I am with you and I will drop ms access.

Thanks again
Peter

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > primary keys and replication


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway