P
postmaster
Can anyone give me hints on database design? I'm seeking for a good design
for my inventory system for corporate use. I really want to have a better
start-off on the design for the system.
Physical constraints:
Our company only have one standalone server to serve all users. i.e. File
sharing, database server, etc.
User requirements:
Users want me to build up a inventory system which not only stores the stock
details but also all relevant invoices involved during daily transactions.
Includes: sales/purchase, consignment-in/out, purchase return, sales return,
etc.
We have several retail shops selling products to customers. Internal
transactions may occur frequently among them each day.
My manager wants the data to be stored 'separately' in database. i.e. Each
shop can only access its own portion of data, with exception of the head
office, which can see all shops inventory data.
Also, I have to design the database to store the various types of invoices
for internal transactions. Each of the internal transaction has to keep
consistent invoices for both sides, i.e. sellor and buyer, and be stored in
the corresponding tables, e.g. S/P txn: sales invoice table for sell-side
and purchase invoice table for buy-side.
Question 1: Do I have to physically partition the database in order to meet
users requirements? This seems to be very common for most company, isn't it?
Question 2: What will be the best way to modify the database when a
transaction occurs?
Question 3: Which one is better while handing the transactional processes,
'begin tran/commit tran' functions in SQL stored procedures or
'.BeginTrans/.CommitTrans' in ADO coding?
Please help! It seems very confused to put things into practice. So many
problems occur during system design phase.
Many thanks,
Leonard
for my inventory system for corporate use. I really want to have a better
start-off on the design for the system.
Physical constraints:
Our company only have one standalone server to serve all users. i.e. File
sharing, database server, etc.
User requirements:
Users want me to build up a inventory system which not only stores the stock
details but also all relevant invoices involved during daily transactions.
Includes: sales/purchase, consignment-in/out, purchase return, sales return,
etc.
We have several retail shops selling products to customers. Internal
transactions may occur frequently among them each day.
My manager wants the data to be stored 'separately' in database. i.e. Each
shop can only access its own portion of data, with exception of the head
office, which can see all shops inventory data.
Also, I have to design the database to store the various types of invoices
for internal transactions. Each of the internal transaction has to keep
consistent invoices for both sides, i.e. sellor and buyer, and be stored in
the corresponding tables, e.g. S/P txn: sales invoice table for sell-side
and purchase invoice table for buy-side.
Question 1: Do I have to physically partition the database in order to meet
users requirements? This seems to be very common for most company, isn't it?
Question 2: What will be the best way to modify the database when a
transaction occurs?
Question 3: Which one is better while handing the transactional processes,
'begin tran/commit tran' functions in SQL stored procedures or
'.BeginTrans/.CommitTrans' in ADO coding?
Please help! It seems very confused to put things into practice. So many
problems occur during system design phase.
Many thanks,
Leonard