SS CreateULGDbase.sql

From Seamonster
Jump to: navigation, search
CREATE DATABASE [ULG] ON  PRIMARY 
( NAME = N'ULG', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\DATA\ULG.mdf' , SIZE = 2048KB , FILEGROWTH = 1024KB )
 LOG ON 
( NAME = N'ULG_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\DATA\ULG_log.ldf' , SIZE = 1024KB , FILEGROWTH = 10%)
GO
EXEC dbo.sp_dbcmptlevel @dbname=N'ULG', @new_cmptlevel=90
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [ULG].[dbo].[sp_fulltext_database] @action = 'disable'
end
GO
ALTER DATABASE [ULG] SET ANSI_NULL_DEFAULT OFF 
GO
ALTER DATABASE [ULG] SET ANSI_NULLS OFF 
GO
ALTER DATABASE [ULG] SET ANSI_PADDING OFF 
GO
ALTER DATABASE [ULG] SET ANSI_WARNINGS OFF 
GO
ALTER DATABASE [ULG] SET ARITHABORT OFF 
GO
ALTER DATABASE [ULG] SET AUTO_CLOSE OFF 
GO
ALTER DATABASE [ULG] SET AUTO_CREATE_STATISTICS ON 
GO
ALTER DATABASE [ULG] SET AUTO_SHRINK OFF 
GO
ALTER DATABASE [ULG] SET AUTO_UPDATE_STATISTICS ON 
GO
ALTER DATABASE [ULG] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO
ALTER DATABASE [ULG] SET CURSOR_DEFAULT  GLOBAL 
GO
ALTER DATABASE [ULG] SET CONCAT_NULL_YIELDS_NULL OFF 
GO
ALTER DATABASE [ULG] SET NUMERIC_ROUNDABORT OFF 
GO
ALTER DATABASE [ULG] SET QUOTED_IDENTIFIER OFF 
GO
ALTER DATABASE [ULG] SET RECURSIVE_TRIGGERS OFF 
GO
ALTER DATABASE [ULG] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO
ALTER DATABASE [ULG] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO
ALTER DATABASE [ULG] SET PARAMETERIZATION SIMPLE 
GO
ALTER DATABASE [ULG] SET  READ_WRITE 
GO
ALTER DATABASE [ULG] SET RECOVERY FULL 
GO
ALTER DATABASE [ULG] SET  MULTI_USER 
GO
ALTER DATABASE [ULG] SET PAGE_VERIFY CHECKSUM  
GO
USE [ULG]
GO
IF NOT EXISTS (SELECT name FROM sys.filegroups WHERE is_default=1 AND name = N'PRIMARY') ALTER DATABASE [ULG] MODIFY FILEGROUP [PRIMARY] DEFAULT
GO