Y2S1-Database_Design/SQL/individual_creates/MediaLibrary.Database.sql
2020-06-07 22:29:59 +01:00

100 lines
6.7 KiB
Transact-SQL
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

USE [master]
GO
/****** Object: Database [MediaLibrary] Script Date: 14/12/2018 00:20:30 ******/
CREATE DATABASE [MediaLibrary]
CONTAINMENT = NONE
ON PRIMARY
( NAME = N'MediaLibrary', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL14.SQLEXPRESS\MSSQL\DATA\MediaLibrary.mdf' , SIZE = 8192KB , MAXSIZE = UNLIMITED, FILEGROWTH = 65536KB )
LOG ON
( NAME = N'MediaLibrary_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL14.SQLEXPRESS\MSSQL\DATA\MediaLibrary_log.ldf' , SIZE = 8192KB , MAXSIZE = 2048GB , FILEGROWTH = 65536KB )
GO
ALTER DATABASE [MediaLibrary] SET COMPATIBILITY_LEVEL = 140
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [MediaLibrary].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [MediaLibrary] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [MediaLibrary] SET ANSI_NULLS OFF
GO
ALTER DATABASE [MediaLibrary] SET ANSI_PADDING OFF
GO
ALTER DATABASE [MediaLibrary] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [MediaLibrary] SET ARITHABORT OFF
GO
ALTER DATABASE [MediaLibrary] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [MediaLibrary] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [MediaLibrary] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [MediaLibrary] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [MediaLibrary] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [MediaLibrary] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [MediaLibrary] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [MediaLibrary] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [MediaLibrary] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [MediaLibrary] SET DISABLE_BROKER
GO
ALTER DATABASE [MediaLibrary] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [MediaLibrary] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [MediaLibrary] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [MediaLibrary] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [MediaLibrary] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [MediaLibrary] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [MediaLibrary] SET HONOR_BROKER_PRIORITY OFF
GO
ALTER DATABASE [MediaLibrary] SET RECOVERY SIMPLE
GO
ALTER DATABASE [MediaLibrary] SET MULTI_USER
GO
ALTER DATABASE [MediaLibrary] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [MediaLibrary] SET DB_CHAINING OFF
GO
ALTER DATABASE [MediaLibrary] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF )
GO
ALTER DATABASE [MediaLibrary] SET TARGET_RECOVERY_TIME = 60 SECONDS
GO
ALTER DATABASE [MediaLibrary] SET DELAYED_DURABILITY = DISABLED
GO
ALTER DATABASE [MediaLibrary] SET QUERY_STORE = OFF
GO
USE [MediaLibrary]
GO
ALTER DATABASE SCOPED CONFIGURATION SET IDENTITY_CACHE = ON;
GO
ALTER DATABASE SCOPED CONFIGURATION SET LEGACY_CARDINALITY_ESTIMATION = OFF;
GO
ALTER DATABASE SCOPED CONFIGURATION FOR SECONDARY SET LEGACY_CARDINALITY_ESTIMATION = PRIMARY;
GO
ALTER DATABASE SCOPED CONFIGURATION SET MAXDOP = 0;
GO
ALTER DATABASE SCOPED CONFIGURATION FOR SECONDARY SET MAXDOP = PRIMARY;
GO
ALTER DATABASE SCOPED CONFIGURATION SET PARAMETER_SNIFFING = ON;
GO
ALTER DATABASE SCOPED CONFIGURATION FOR SECONDARY SET PARAMETER_SNIFFING = PRIMARY;
GO
ALTER DATABASE SCOPED CONFIGURATION SET QUERY_OPTIMIZER_HOTFIXES = OFF;
GO
ALTER DATABASE SCOPED CONFIGURATION FOR SECONDARY SET QUERY_OPTIMIZER_HOTFIXES = PRIMARY;
GO
ALTER DATABASE [MediaLibrary] SET READ_WRITE
GO