Results 1 to 7 of 7

Thread: Database design

  1. #1

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    Database design

    Is it possible to design a database that will hold imformation from excel, but it spossible that the structure of the spreadhseet will change?

  2. #2
    Addicted Member
    Join Date
    Oct 2004
    Location
    Clane, Ireland
    Posts
    179

    Re: Database design

    It depends. Are you expecting the structure of the database to change to match the changes of the Excel spread sheet, or will what ever loads the database from the spreadsheet change, to keep the database structure in tact.

    I wouldn't advise constantly changing the structure of a database - it can lead to problems with existing data, and also the application / queries that are built over it.

    HTH
    JP

    Please rate the postings

  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Database design

    Yup.

    Keep your DB structure rigid, and use some kind of mapping tool to import data from structurally volatile spreadsheets.

    Is that what you're after?

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Database design

    It's possible if you store the 'column names that could possibly change' in a table which holds such column names with an id which can map to values you hold in another such table.

  5. #5
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Database design

    Mendhak, we do thousands of spreadsheet imports a week, using exactly what Penagate suggests - using a mapping file as an intermediary. The program reads the mapping file, which tells it what to do with every column in the spreadsheet. (We've run this on spreadsheets with a few hundred columns and 65k rows with no problems.)

    @Penagate - I never noticed the 'Moderator' tag before. Are congratulations in order?
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  6. #6

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    Re: Database design

    thansk for the replies, this is what i was thinking. The only problem is if I mapped to a data column how would this one column hold different types of data? ie dates, integers etc

  7. #7
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Database design

    Why do you need to store this info in the database and how do you want to retrieve it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width