Solved

create dynamic table in ms access using vb.net

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

A short article about problems I had with the new location API and permissions in Marshmallow
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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 …

770 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