Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simulated Tables
Message
De
11/04/2007 15:14:40
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Titre:
Simulated Tables
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01214639
Message ID:
01214639
Vues:
51
Hi,

We are in the process of migrating a solely VFP based application to a .NET Winforms/SQL solution.

The application requires that users be able to define some of their own data tables where the available field types come from a limited pre-defined list. Actually, for the new version we might use the same type for all fields (basically they will contain serialized objects). As a general rule a user will define a maximum of five or six tables and each table will contain no more than six/seven columns and a few hundred records.

In the VFP version we physically created these individual tables and the approach worked OK - but it wasn't pretty.

For the SQL version I am considering simulating the seperate tables by using three tables - e.g something like:
TableList: Id, TableName
ColumnList: Id, ColumnName, TableId, ColumnType
RowList: Id, Rowid,ColumnListId, Data

Does anyone have any views of the pros and cons of such an approach? The first hurdle that I see is constructing a constraint that ensures that RowList rows with the same RowId only use a ColumnListId for Columns from the same Table.....

TIA,
Viv
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform