Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

create dynamic table in ms access using vb.net

Posted on 2007-11-25
3
Medium Priority
?
658 Views
Last Modified: 2008-02-01
Hi all,  let say i want to store every review and rating from customer for each book tittle on a seperate table, how do i create a the child table for it during each new book is insert. i am using isbn as primary key for the parent  table.

prefer ado solution.
am using vb.net 2003
0
Comment
Question by:aaxen
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
Göran Andersson earned 1500 total points
ID: 20346131
Don't do that, that is a very bad database design. For several reasons:

1. You are storing data in the metadata of the database. The database design should not change when you store data in it.

2. You would have to create the SQL dynamically to access the data. That makes the system less robust, and it has bad effects on caching in the database.

3. Searching for data across reviews gets extremely inefficient, as you would have to open all tables and get the data for each review separately.

Just store all the reviews in the same table.
0
 

Author Comment

by:aaxen
ID: 20346617
hmmm any advise???
0
 
LVL 29

Expert Comment

by:Göran Andersson
ID: 20346766
Advice about what? Identifying the records in the table?

Use whatever you had planned to use for uniquely naming the tables, for identifying the records instead.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Simple Linear Regression
Introduction to Processes

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question