Cowboy_BeBa
Registered User.
- Local time
- Today, 09:49
- Joined
- Nov 30, 2010
- Messages
- 188
Hey all, hows it going?
Ive recently started up my own company (with a partner who is in charge of sales/marketing) and have built an MRP system in access
My partner wants to switch over to an SQL backend/web frontend
I dont have much time to get the job done (as i also have a day job) so we're outsourcing to india to get the front end built and i just plan to convert the backend to sql and send the team in india the CREATE scripts for the backend
the issue im having is with design, as im not too experienced with the sql backend im just wondering how this would work in regards to multiple customers
ie, the database was designed so that the back end would sit on each individual company's server, then each user would have a copy of the front end to use
However with the new version we're giving custoemrs the option of either storing their backend on their own server or paying us an additional monthly fee to host and maintain their db on our server
If they go for the latter option im wondering, do i need to create a new copy of the database for each company? if so the connection string would need to be altered but im not sure how id go about altering the string for each company that uses the service
the other option is to create a new table for each company and then link it to pretty much every table in the db (and turn every Primary Key into a composite key, using the companies ID and whatever ID number is generated on the table in question)
Option A looks the simplest but i dunno how to implement it (im assuming ill need a Companies table which links to the Users table and a connection string would be retrieved by grabbing it from the Companies table? just seems very fiddle-y)
Option B can be accomplished easy enough, however the problem would be the generation of auto numbers
ie. Say ive got two companies, their ID's are 001 and 002, company 002 generates a few purchase orders, ID's 001-007, then company 001 generates an order, instead of their first PO being 001, its 008, then company 002 generates PO 009 and it goes from there, i can imagine this getting very confusing and dunno how to change the db structure so that it keeps track of numbers for each individual client, once again seems like it would be more trouble than its worth
can anyone offer any advice on what the industry standard is for this type of system?
Ive recently started up my own company (with a partner who is in charge of sales/marketing) and have built an MRP system in access
My partner wants to switch over to an SQL backend/web frontend
I dont have much time to get the job done (as i also have a day job) so we're outsourcing to india to get the front end built and i just plan to convert the backend to sql and send the team in india the CREATE scripts for the backend
the issue im having is with design, as im not too experienced with the sql backend im just wondering how this would work in regards to multiple customers
ie, the database was designed so that the back end would sit on each individual company's server, then each user would have a copy of the front end to use
However with the new version we're giving custoemrs the option of either storing their backend on their own server or paying us an additional monthly fee to host and maintain their db on our server
If they go for the latter option im wondering, do i need to create a new copy of the database for each company? if so the connection string would need to be altered but im not sure how id go about altering the string for each company that uses the service
the other option is to create a new table for each company and then link it to pretty much every table in the db (and turn every Primary Key into a composite key, using the companies ID and whatever ID number is generated on the table in question)
Option A looks the simplest but i dunno how to implement it (im assuming ill need a Companies table which links to the Users table and a connection string would be retrieved by grabbing it from the Companies table? just seems very fiddle-y)
Option B can be accomplished easy enough, however the problem would be the generation of auto numbers
ie. Say ive got two companies, their ID's are 001 and 002, company 002 generates a few purchase orders, ID's 001-007, then company 001 generates an order, instead of their first PO being 001, its 008, then company 002 generates PO 009 and it goes from there, i can imagine this getting very confusing and dunno how to change the db structure so that it keeps track of numbers for each individual client, once again seems like it would be more trouble than its worth
can anyone offer any advice on what the industry standard is for this type of system?