码迷,mamicode.com
首页 > 数据库 > 详细

SQLServer亿万级数据优化

时间:2019-06-22 10:45:51      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:mdf   row   nbsp   lse   数据   serve   bsp   base   lte   

--创建分区文件组
alter database test add filegroup seclab_sgk_db_01
alter database test add filegroup seclab_sgk_db_02
alter database test add filegroup seclab_sgk_db_03
alter database test add filegroup seclab_sgk_db_04
alter database test add filegroup seclab_sgk_db_05
alter database test add filegroup seclab_sgk_db_06
alter database test add filegroup seclab_sgk_db_07
alter database test add filegroup seclab_sgk_db_08
alter database test add filegroup seclab_sgk_db_09
alter database test add filegroup seclab_sgk_db_10

 

alter database seclab_sgk_db
add file(name=‘seclab_sgk_db_01‘
,filename=‘E:\DataDB\seclab_sgk_db\seclab_sgk_db_01.mdf‘
,size=3mb
,filegrowth=10mb)
to filegroup seclab_sgk_db_01;
alter database seclab_sgk_db
add file(name=‘seclab_sgk_db_02‘
,filename=‘E:\DataDB\seclab_sgk_db\seclab_sgk_db_02.mdf‘
,size=3mb
,filegrowth=10mb)
to filegroup seclab_sgk_db_02;
alter database seclab_sgk_db
add file(name=‘seclab_sgk_db_03‘
,filename=‘E:\DataDB\seclab_sgk_db\seclab_sgk_db_03.mdf‘
,size=3mb
,filegrowth=10mb)
to filegroup seclab_sgk_db_03;
alter database seclab_sgk_db
add file(name=‘seclab_sgk_db_04‘
,filename=‘E:\DataDB\seclab_sgk_db\seclab_sgk_db_04.mdf‘
,size=3mb
,filegrowth=10mb)
to filegroup seclab_sgk_db_04;
alter database seclab_sgk_db
add file(name=‘seclab_sgk_db_05‘
,filename=‘E:\DataDB\seclab_sgk_db\seclab_sgk_db_05.mdf‘
,size=3mb
,filegrowth=10mb)
to filegroup seclab_sgk_db_05;
alter database seclab_sgk_db
add file(name=‘seclab_sgk_db_06‘
,filename=‘E:\DataDB\seclab_sgk_db\seclab_sgk_db_06.mdf‘
,size=3mb
,filegrowth=10mb)
to filegroup seclab_sgk_db_06;
alter database seclab_sgk_db
add file(name=‘seclab_sgk_db_07‘
,filename=‘E:\DataDB\seclab_sgk_db\seclab_sgk_db_07.mdf‘
,size=3mb
,filegrowth=10mb)
to filegroup seclab_sgk_db_07;
alter database seclab_sgk_db
add file(name=‘seclab_sgk_db_08‘
,filename=‘E:\DataDB\seclab_sgk_db\seclab_sgk_db_08.mdf‘
,size=3mb
,filegrowth=10mb)
to filegroup seclab_sgk_db_08;
alter database seclab_sgk_db
add file(name=‘seclab_sgk_db_09‘
,filename=‘E:\DataDB\seclab_sgk_db\seclab_sgk_db_09.mdf‘
,size=3mb
,filegrowth=10mb)
to filegroup seclab_sgk_db_09;
alter database seclab_sgk_db
add file(name=‘seclab_sgk_db_10‘
,filename=‘E:\DataDB\seclab_sgk_db\seclab_sgk_db_10.mdf‘
,size=3mb
,filegrowth=10mb)
to filegroup seclab_sgk_db_10;

 

SQLServer亿万级数据优化

标签:mdf   row   nbsp   lse   数据   serve   bsp   base   lte   

原文地址:https://www.cnblogs.com/little-kwy/p/11067755.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!