SQL Server 需要对数据进行分区,但只有标准版 [英] SQL Server need to partition data, but only have standard edition

查看:32
本文介绍了SQL Server 需要对数据进行分区,但只有标准版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以在代码(Sproc 等)中将表的数据分发到多个文件组中,而实际上没有可用的 SQL Server 分区(只有标准版)?我希望能够将我的 FileStream 数据分成不同的分区",但如果没有企业许可,我实际上无法使用分区功能.

Is there a way that I can in code (Sproc ,etc) distribute the data for a table into multiple filegroups without actually having SQL Server partitioning available (Only have Standard Edition)? I wanted to be able to breakout my FileStream data into different "Partitions", but without an Enterprise license I can't actually use the partitioning functionality.

任何建议将不胜感激.

谢谢,

S

推荐答案

您可以将数据分布到不同的数据库中,并通过视图加入它们.棘手的部分是在添加/删除数据时保持视图更新.

You can distribute your data into different databases and join them with views. The tricky part of that will be to keep the views updated as you add/remove data.

您需要在逻辑键(如日历日期)上执行此分区",其中每个数据库都有特定范围内的数据.如果您在此字段上进行集群,查询分析器将能够确定从哪个数据库中提取数据而不会出现问题.

You need to do this "partition" on a logical key (like a calendar date) where each DB has data within a certain range. If you cluster on this field, the query analyzer will be able to determine which DB to pull data from without issue.

在我的工作场所,我们将这种技术用于一个非常大(数十亿行)的数据集,我们每月都会向其中添加数据,并且效果很好.

At my workplace we are using this technique for a very large (multi-billion row) data set that we get monthly additions to and it works great.

这篇关于SQL Server 需要对数据进行分区,但只有标准版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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