SQL Server:一个具有400列的表或40个具有10列的表? [英] SQL Server: One Table with 400 Columns or 40 Tables with 10 Columns?

查看:235
本文介绍了SQL Server:一个具有400列的表或40个具有10列的表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是SQL Server 2005 Express和Visual Studio 2008.

I am using SQL Server 2005 Express and Visual Studio 2008.

我有一个数据库,其中有一个400列的表。事情是(只是可管理的),直到我不得不在几个数据库之间执行双向同步。

I have a database which has a table with 400 Columns. Things were (just about manageable) until I had to perform bi-directional sync between several databases.

我想知道什么参数使用400列数据库或40表数据库是?

I am wondering what arguments are for and against using 400 column database or 40 table database are?

表未归一化,主要包括nvarchar(64)列和一些TEXT列。 (没有数据类型,因为它是从文本文件转换的)。

The table in not normalised and comprises of mainly nvarchar(64) columns and some TEXT columns. (there are no datatypes as it was converted from text files).

还有另一个表链接到此表,并且是一个1-1关系(即一个条目与400列表中的一个条目相关)。

There is one other table that links to this table and is a 1-1 relationship (i.e one entry relates to one entry in the 400 column table).

表是一个包含插入到应用程序中的参数的列表文件。

The table is a list files that contained parameters that are "plugged" into a application.

我期待您的

谢谢

推荐答案

将从这样的东西开始。模型是简化的,不捕获历史等 - 但是,这是一个很好的起点。注意:parameter = property。

Based on your process description I would start with something like this. The model is simplified, does not capture history, etc -- but, it is a good starting point. Note: parameter = property.


设置属性的集合。一个设置可以有多个属性,一个属性仅属于一个设置

- 机器可以有多个设置,一个设置只属于一个机器

- 属性属于特定类型(温度,运行时间,主轴速度),可以有许多属性某个类型

- 测量 trait 属性的类型。 测量是数字属性,例如速度。 特征是描述性的属性,例如颜色或文字。




- Setup is a collection of properties. One setup can have many properties, one property belongs to one setup only.
- Machine can have many setups, one setup belongs to one machine only.
- Property is of a specific type (temperature, run time, spindle speed), there can be many properties of a certain type.
- Measurement and trait are types of properties. Measurement is a numeric property, like speed. Trait is a descriptive property, like color or some text.

这篇关于SQL Server:一个具有400列的表或40个具有10列的表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆