USE [master]
GO
/****** Object:  Database [DDOS]    Script Date: 12/20/2015 6:08:24 PM ******/
CREATE DATABASE [DDOS]
 CONTAINMENT = NONE
 ON  PRIMARY 
( NAME = N'DDOS', FILENAME = N'D:\SQL SERVER DATA\SQL Server\MSSQL12.SQLEXPRESS\MSSQL\DATA\DDOS.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
 LOG ON 
( NAME = N'DDOS_log', FILENAME = N'D:\SQL SERVER DATA\SQL Server\MSSQL12.SQLEXPRESS\MSSQL\DATA\DDOS_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO
ALTER DATABASE [DDOS] SET COMPATIBILITY_LEVEL = 120
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [DDOS].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [DDOS] SET ANSI_NULL_DEFAULT OFF 
GO
ALTER DATABASE [DDOS] SET ANSI_NULLS OFF 
GO
ALTER DATABASE [DDOS] SET ANSI_PADDING OFF 
GO
ALTER DATABASE [DDOS] SET ANSI_WARNINGS OFF 
GO
ALTER DATABASE [DDOS] SET ARITHABORT OFF 
GO
ALTER DATABASE [DDOS] SET AUTO_CLOSE OFF 
GO
ALTER DATABASE [DDOS] SET AUTO_SHRINK OFF 
GO
ALTER DATABASE [DDOS] SET AUTO_UPDATE_STATISTICS ON 
GO
ALTER DATABASE [DDOS] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO
ALTER DATABASE [DDOS] SET CURSOR_DEFAULT  GLOBAL 
GO
ALTER DATABASE [DDOS] SET CONCAT_NULL_YIELDS_NULL OFF 
GO
ALTER DATABASE [DDOS] SET NUMERIC_ROUNDABORT OFF 
GO
ALTER DATABASE [DDOS] SET QUOTED_IDENTIFIER OFF 
GO
ALTER DATABASE [DDOS] SET RECURSIVE_TRIGGERS OFF 
GO
ALTER DATABASE [DDOS] SET  DISABLE_BROKER 
GO
ALTER DATABASE [DDOS] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO
ALTER DATABASE [DDOS] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO
ALTER DATABASE [DDOS] SET TRUSTWORTHY OFF 
GO
ALTER DATABASE [DDOS] SET ALLOW_SNAPSHOT_ISOLATION OFF 
GO
ALTER DATABASE [DDOS] SET PARAMETERIZATION SIMPLE 
GO
ALTER DATABASE [DDOS] SET READ_COMMITTED_SNAPSHOT OFF 
GO
ALTER DATABASE [DDOS] SET HONOR_BROKER_PRIORITY OFF 
GO
ALTER DATABASE [DDOS] SET RECOVERY SIMPLE 
GO
ALTER DATABASE [DDOS] SET  MULTI_USER 
GO
ALTER DATABASE [DDOS] SET PAGE_VERIFY CHECKSUM  
GO
ALTER DATABASE [DDOS] SET DB_CHAINING OFF 
GO
ALTER DATABASE [DDOS] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF ) 
GO
ALTER DATABASE [DDOS] SET TARGET_RECOVERY_TIME = 0 SECONDS 
GO
ALTER DATABASE [DDOS] SET DELAYED_DURABILITY = DISABLED 
GO
USE [DDOS]
GO
/****** Object:  User [NT AUTHORITY\SYSTEM]    Script Date: 12/20/2015 6:08:24 PM ******/
CREATE USER [NT AUTHORITY\SYSTEM] FOR LOGIN [NT AUTHORITY\SYSTEM] WITH DEFAULT_SCHEMA=[dbo]
GO
ALTER ROLE [db_owner] ADD MEMBER [NT AUTHORITY\SYSTEM]
GO
ALTER ROLE [db_accessadmin] ADD MEMBER [NT AUTHORITY\SYSTEM]
GO
ALTER ROLE [db_securityadmin] ADD MEMBER [NT AUTHORITY\SYSTEM]
GO
ALTER ROLE [db_ddladmin] ADD MEMBER [NT AUTHORITY\SYSTEM]
GO
ALTER ROLE [db_backupoperator] ADD MEMBER [NT AUTHORITY\SYSTEM]
GO
ALTER ROLE [db_datareader] ADD MEMBER [NT AUTHORITY\SYSTEM]
GO
ALTER ROLE [db_datawriter] ADD MEMBER [NT AUTHORITY\SYSTEM]
GO
ALTER ROLE [db_denydatareader] ADD MEMBER [NT AUTHORITY\SYSTEM]
GO
ALTER ROLE [db_denydatawriter] ADD MEMBER [NT AUTHORITY\SYSTEM]
GO
/****** Object:  Table [dbo].[tDDOS]    Script Date: 12/20/2015 6:08:24 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[tDDOS](
	[sUserBlock] [nchar](10) NULL,
	[sIP] [nchar](10) NULL,
	[sUserID] [nchar](10) NULL
) ON [PRIMARY]

GO
USE [master]
GO
ALTER DATABASE [DDOS] SET  READ_WRITE 
GO
