USE [master]
GO
/****** Object: Database [qpglxt]Script Date: 05/19/2015 16:42:33 ******/
CREATE DATABASE [qpglxt] ON PRIMARY
( NAME = N'qpglxt', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\qpglxt.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
LOG ON
( NAME = N'qpglxt_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\qpglxt_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO
ALTER DATABASE [qpglxt] SET COMPATIBILITY_LEVEL = 100
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [qpglxt].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [qpglxt] SET PAGE_VERIFY CHECKSUM
go
create database XSCJon primary -- 默认就属于primary文件组,可省略
(
/*--数据文件的具体描述--*/
name='xscj_data', -- 主数据文件的逻辑名称
filename='D:\sqlwork\txscj_data.mdf'-- 主数据文件的物理名称
size=5mb, --主数据文件的初始大小
maxsize=50mb, -- 主数据文件增长的最大值
filegrowth=10%--主数据文件的增长率
)
log on
(
/*--日志文件的具体描述,各参数含义同上--*/
name='xscj_log',
filename='D:\sqlwork\xscj_log.ldf',
size=3mb,
maxsize=30mb,
filegrowth=10%
)
IF EXISTS (SELECT name FROM sys.databases WHERE name = N'xscj_data2')
DROP DATABASE [xscj_data2]
GO
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)