Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User designed tables
Message
De
26/05/2011 09:07:42
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Titre:
User designed tables
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01511812
Message ID:
01511812
Vues:
106
Hi,

About to start re-write an existing VFP app using .NET and also moving the backend from a VFP to SQL Database.

The application allows users, in a limited way, to design their own tables. In practice the type of fields are chosen from a pre-defined list. (e.g 10 character string, 50 character string, int, currency and some more complex datatypes that are stored in memo fields).

There may be several such tables but usually each will only contain 6-10 fields and 100-500 records per table.
The user also needs the ability to later add and/or delete fields from existing populated tables

In VFP we physically created each table as part of the database using randomly generated table and field names and used the DBC to track the 'user friendly' names of the tables and fields (including the datatype for the complex fields).

I could implement the same type of thing in SQL (using additional tables to store the 'metadata' currently embedded in the DBC).
I've played with a couple of other options but I'd be interested to see if anyone can come up with a good alternative other than the above.....

Note: Although I've put SQL 2000 as the version this would need to be supportable in SQL Express. Also, if there's some functionality in later versions that would make for a better solution I guess we could specify that version.....

TIA,
Viv
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform