2006-11-14

sql server 2005中的表分区

来源: 博客园 作者:佚名 评论 0 条
 
set @count =201
while @count <=300
begin
insert into MyTable select @count,getdate(),300.00
set @count=@count 1
end
set @count =301
while @count <=400
begin
insert into MyTable select @count,getdate(),400.00
set @count=@count 1
end
set @count =401
while @count <=800
begin
insert into MyTable select @count,getdate(),500.00
set @count=@count 1
end


最后,我们可以查询下,插入的这些数据,是否真的被划分到四个不同的文件组里的表分区了,可以这样看
SELECT *, $PARTITION.[Data Partition Range](ID)
FROM MyTable

http://www.cnblogs.com/jackyrong/archive/2006/11/13/559354.html


共2页: 上一页 [1] 2 下一页
(本文仅表明作者个人观点,不代表本站及其管理员立场.) 推荐 收藏 投稿 打印 返回 关闭
上一篇:Sql server进行优化50招特效  
下一篇:关于SQL Server数据库的若干注意事项
    评论加载中…
 推荐文章
     

网站首页  -  网站地图 -   站长论坛  -  网站投稿  -    -  网站管理
Copyright © 2008 芜湖站长站 All Rights Reserved 皖ICP备07500611号