⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 【例3-3】创建名为stu的数据库.txt

📁 sql server 2000 数据库与应用
💻 TXT
字号:
【例3-3】创建名为stu的数据库,它有3个数据文件组成,其中主文件为stu_data1.mdf,使用PRIMARY关键字指定。Stu_data2_.ndf、stu_data3.ndf是次文件,尺寸分别为5MB,3MB,2MB。事务日志文件有2个,分别为4MB、3MB。数据文件和事务日志文件的最大尺寸均为20MB,文件增量为2MB。
CREATE DATABASE stu
ON
PRIMARY (NAME=stu_data1,
  FILENAME='C:\stu_data1.mdf',
  SIZE=5MB,
  MAXSIZE=20MB,
  FILEGROWTH=2MB),
(NAME=stu_data2,
FILENAME='C:\stu_data2.ndf',
  SIZE=3MB,
  MAXSIZE=20MB,
  FILEGROWTH=2MB),
(NAME=stu_data3,
FILENAME='C:\stu_data3.ndf',
  SIZE=2MB,
  MAXSIZE=20MB,
  FILEGROWTH=2MB)
LOG ON
(NAME=stu_log1,
  FILENAME='C:\stu_log1.Ldf',
  SIZE=4MB,
  MAXSIZE=20MB,
  FILEGROWTH=2MB),
(NAME=stu_log2,
  FILENAME='C:\stu_log2.Ldf',
  SIZE=3MB,
  MAXSIZE=20MB,
  FILEGROWTH=2MB)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -