Solved

create dynamic table in ms access using vb.net

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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 fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

747 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

12 Experts available now in Live!

Get 1:1 Help Now