Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 661
  • Last Modified:

create dynamic table in ms access using vb.net

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
aaxen
Asked:
aaxen
  • 2
1 Solution
 
Göran AnderssonCommented:
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
 
aaxenAuthor Commented:
hmmm any advise???
0
 
Göran AnderssonCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now