Solved

create dynamic table in ms access using vb.net

Posted on 2007-11-25
3
639 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is an explanation of a simple data model to help parse a JSON feed
This is about my first experience with programming Arduino.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

929 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now