易截截图软件、单文件、免安装、纯绿色、仅160KB

SQL Server2005 表分区

---1、添加数据文件
use master
go
--Fam200901
alter database RedfDB
add filegroup FGAM200901
go
alter database RedfDB
add file(name='FGAM200901',filename='D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\Fam200901.mdf',
      size=20,maxsize=40,filegrowth=10%)to filegroup FGAM200901;
go
--Fam200901
alter database RedfDB
add filegroup FGAM200902
go
alter database RedfDB
add file(name='FGAM200902', filename='D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\Fam200902.mdf',
 size=20,maxsize=40,filegrowth=10%)to filegroup FGAM200902;
--FGAM200903
alter database RedfDB
add filegroup FGAM200903
go
alter database RedfDB
add file(name='FGAM200903', filename='D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\FGAM200903.mdf',
 size=20, maxsize=40, filegrowth=10%)to filegroup FGAM200903;
go
--FGAM200904
alter database RedfDB
add filegroup FGAM200904
go
alter database RedfDB
add file
(name='FGAM200904', filename='D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\FGAM200904.mdf',
 size=20, maxsize=40, filegrowth=10%)to filegroup FGAM200904;
go
--FGAM200905
alter database RedfDB
add filegroup FGAM200905
go
alter database RedfDB
add file(name='FGAM200905', filename='D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\FGAM200905.mdf',
 size=20, maxsize=40, filegrowth=10%)to filegroup FGAM200905;
go
--FGAM200906
alter database RedfDB
add filegroup FGAM200906
go
alter database RedfDB
add file
(name='FGAM200906', filename='D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\FGAM200906.mdf',
 size=20, maxsize=40, filegrowth=10%)to filegroup FGAM200906;
--FGAM200907
alter database RedfDB
add filegroup FGAM200907
go
alter database RedfDB
add file
(name='FGAM200907', filename='D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\FGAM200907.mdf',
 size=20, maxsize=40, filegrowth=10%)to filegroup FGAM200907;
--FGAM200908
alter database


相关文档:

可为NULL 但不能重复的SQL约束


SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER   trigger   [dbo].[checkExamNo] on   [dbo].[student]
  for   insert,update    as  
  if   exists(select   examNo from   student whe ......

如何把双色球的红球所有组合排出来(SQL)

SELECT TOP 33 id=identity(int,1,1) INTO #1 from sysobjects
SELECT A.id ,B.id,C.id,D.id,E.id,F.id
from #1 A,#1 B,#1 C,#1 D,#1 E,#1 F
WHERE A.ID<B.ID AND A.ID<C.ID AND A.ID<D.ID AND A.ID<E.ID AND A.ID<F.ID
AND B.ID<C.ID AND B.ID<D.ID AND B.ID<E.ID AND B.ID<F.ID
AND C.I ......

经典SQL语句大全(适合SQL SERVER)


下列语句部分是Mssql语句,不可以在access中使用。
  SQL分类:
  DDL—数据定义语言(CREATE,ALTER,DROP,DECLARE)
  DML—数据操纵语言(SELECT,DELETE,UPDATE,INSERT)
  DCL—数据控制语言(GRANT,REVOKE,COMMIT,ROLLBACK)
  首先,简要介绍基础语句:
  1、说明:创建数据库 ......

t sql 读出每组的前n个

http://topic.csdn.net/u/20100113/17/b52a1ef4-54a8-4333-8119-a161869c1eef.html
---------------------------------
--  Author: liangCK 小梁
--  Title : 查每个分组前N条记录
--  Date  : 2008-11-13 17:19:23
---------------------------------
--> 生成测试数据: #T
IF OBJECT_ID(' ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号