Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Database design issue
Message
From
14/12/2001 14:56:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
14/12/2001 14:31:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00594559
Message ID:
00594590
Views:
25
>>I developed this foxpro database that keeps track of students and what buildings they live in for my univeristy.
>>
>>In order to keep table sizes small etc... i have some tables that exist over multiple years (ex years, buildings) and some that get recreated every new year (ex students, movelogs). I do this by creating a new directory for the new year and creating the tables in that directory. This way to go back to an old year I just switch the directory path and reopen the tables.
>>
>>Now, im moving this to an sql server...
>>
>>Any ideas on how to implement this?
>>I thought of two ways but cant decide on which one would be best.
>>
>>a) Since sql server is powerful enought I could just have one database with all the tables and create foreign keys in the year specific tables and filter for the current year. Only problem with this is that the tables could get HUGE.
>>
>>b) Or I could create different tables for the different years within the same database. ex student01, student02 and when I bring them down to my app i could just rename them student. Only problem with this is that there could be lots of tables in the database which are all the same, just different data.
>>
>>Let me know what you think?
>>
>>Thanks in advance, Eric
>
>Usually, the second option is preferable even in FoxPro or Visual FoxPro. This simplifies maintenance greatly. Of course, available disk space, or the 2 GB limitation per file, can sometimes force you to do otherwise.
>
>On SQL server, I would definitely recommend option "b".

I got the options confused. What I meant to say is that combining the tables, programming is usually much simpler. That would be option "a".

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform