Datenbank erstellen


USE [master]
GO

/****** Object:  Database [DWH_Stage]    Script Date: 21.04.2021 23:57:34 ******/
CREATE DATABASE [DWH_Stage]
 CONTAINMENT = NONE
 ON  PRIMARY 
( NAME = N'DWH_Stage', FILENAME = N'E:\Datenbanken\DWH_Stage.mdf' , SIZE = 532480KB , MAXSIZE = UNLIMITED, FILEGROWTH = 65536KB )
 LOG ON 
( NAME = N'DWH_StagePrimare_log', FILENAME = N'E:\Datenbanken\DWH_StagePrimare_log.ldf' , SIZE = 794624KB , MAXSIZE = 2048GB , FILEGROWTH = 65536KB ), 
( NAME = N'DWH_StageSekundare1_log', FILENAME = N'E:\Datenbanken\DWH_StageSekundare1_log.ldf' , SIZE = 794624KB , MAXSIZE = 2048GB , FILEGROWTH = 65536KB ), 
( NAME = N'DWH_StageSekundare2_log', FILENAME = N'E:\Datenbanken\DWH_StageSekundare2_log.ldf' , SIZE = 794624KB , MAXSIZE = 2048GB , FILEGROWTH = 65536KB )
 WITH CATALOG_COLLATION = DATABASE_DEFAULT
GO

ALTER DATABASE [DWH_Stage] ADD FILEGROUP [Sekundary]
GO

IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [DWH_Stage].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO

ALTER DATABASE [DWH_Stage] SET ANSI_NULL_DEFAULT OFF 
GO

ALTER DATABASE [DWH_Stage] SET ANSI_NULLS OFF 
GO

ALTER DATABASE [DWH_Stage] SET ANSI_PADDING OFF 
GO

ALTER DATABASE [DWH_Stage] SET ANSI_WARNINGS OFF 
GO

ALTER DATABASE [DWH_Stage] SET ARITHABORT OFF 
GO

ALTER DATABASE [DWH_Stage] SET AUTO_CLOSE OFF 
GO

ALTER DATABASE [DWH_Stage] SET AUTO_SHRINK OFF 
GO

ALTER DATABASE [DWH_Stage] SET AUTO_UPDATE_STATISTICS ON 
GO

ALTER DATABASE [DWH_Stage] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO

ALTER DATABASE [DWH_Stage] SET CURSOR_DEFAULT  GLOBAL 
GO

ALTER DATABASE [DWH_Stage] SET CONCAT_NULL_YIELDS_NULL OFF 
GO

ALTER DATABASE [DWH_Stage] SET NUMERIC_ROUNDABORT OFF 
GO

ALTER DATABASE [DWH_Stage] SET QUOTED_IDENTIFIER OFF 
GO

ALTER DATABASE [DWH_Stage] SET RECURSIVE_TRIGGERS OFF 
GO

ALTER DATABASE [DWH_Stage] SET  DISABLE_BROKER 
GO

ALTER DATABASE [DWH_Stage] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO

ALTER DATABASE [DWH_Stage] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO

ALTER DATABASE [DWH_Stage] SET TRUSTWORTHY OFF 
GO

ALTER DATABASE [DWH_Stage] SET ALLOW_SNAPSHOT_ISOLATION OFF 
GO

ALTER DATABASE [DWH_Stage] SET PARAMETERIZATION SIMPLE 
GO

ALTER DATABASE [DWH_Stage] SET READ_COMMITTED_SNAPSHOT OFF 
GO

ALTER DATABASE [DWH_Stage] SET HONOR_BROKER_PRIORITY OFF 
GO

ALTER DATABASE [DWH_Stage] SET RECOVERY FULL 
GO

ALTER DATABASE [DWH_Stage] SET  MULTI_USER 
GO

ALTER DATABASE [DWH_Stage] SET PAGE_VERIFY CHECKSUM  
GO

ALTER DATABASE [DWH_Stage] SET DB_CHAINING OFF 
GO

ALTER DATABASE [DWH_Stage] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF ) 
GO

ALTER DATABASE [DWH_Stage] SET TARGET_RECOVERY_TIME = 60 SECONDS 
GO

ALTER DATABASE [DWH_Stage] SET DELAYED_DURABILITY = DISABLED 
GO

ALTER DATABASE [DWH_Stage] SET ACCELERATED_DATABASE_RECOVERY = OFF  
GO

ALTER DATABASE [DWH_Stage] SET QUERY_STORE = OFF
GO

USE [DWH_Stage]
GO

ALTER DATABASE SCOPED CONFIGURATION SET QUERY_OPTIMIZER_HOTFIXES = ON;
GO

ALTER DATABASE [DWH_Stage] SET  READ_WRITE 
GO

Hinterlasse jetzt einen Kommentar

Kommentar hinterlassen

E-Mail Adresse wird nicht veröffentlicht.


*