USE [master]
GO
/****** Object:  Database [MYDB]    Script Date: 10.04.2019 09:08:10 ******/
CREATE DATABASE [MYDB]
 CONTAINMENT = NONE
 ON  PRIMARY 
( NAME = N'MYDB', FILENAME = N'/var/opt/mssql/data/MYDB.mdf' , SIZE = 8192KB , MAXSIZE = UNLIMITED, FILEGROWTH = 65536KB )
 LOG ON 
( NAME = N'MYDB_log', FILENAME = N'/var/opt/mssql/data/MYDB_log.ldf' , SIZE = 8192KB , MAXSIZE = 2048GB , FILEGROWTH = 65536KB )
GO
ALTER DATABASE [MYDB] SET COMPATIBILITY_LEVEL = 140
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [MYDB].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [MYDB] SET ANSI_NULL_DEFAULT OFF 
GO
ALTER DATABASE [MYDB] SET ANSI_NULLS OFF 
GO
ALTER DATABASE [MYDB] SET ANSI_PADDING OFF 
GO
ALTER DATABASE [MYDB] SET ANSI_WARNINGS OFF 
GO
ALTER DATABASE [MYDB] SET ARITHABORT OFF 
GO
ALTER DATABASE [MYDB] SET AUTO_CLOSE OFF 
GO
ALTER DATABASE [MYDB] SET AUTO_SHRINK OFF 
GO
ALTER DATABASE [MYDB] SET AUTO_UPDATE_STATISTICS ON 
GO
ALTER DATABASE [MYDB] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO
ALTER DATABASE [MYDB] SET CURSOR_DEFAULT  GLOBAL 
GO
ALTER DATABASE [MYDB] SET CONCAT_NULL_YIELDS_NULL OFF 
GO
ALTER DATABASE [MYDB] SET NUMERIC_ROUNDABORT OFF 
GO
ALTER DATABASE [MYDB] SET QUOTED_IDENTIFIER OFF 
GO
ALTER DATABASE [MYDB] SET RECURSIVE_TRIGGERS OFF 
GO
ALTER DATABASE [MYDB] SET  DISABLE_BROKER 
GO
ALTER DATABASE [MYDB] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO
ALTER DATABASE [MYDB] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO
ALTER DATABASE [MYDB] SET TRUSTWORTHY OFF 
GO
ALTER DATABASE [MYDB] SET ALLOW_SNAPSHOT_ISOLATION OFF 
GO
ALTER DATABASE [MYDB] SET PARAMETERIZATION SIMPLE 
GO
ALTER DATABASE [MYDB] SET READ_COMMITTED_SNAPSHOT OFF 
GO
ALTER DATABASE [MYDB] SET HONOR_BROKER_PRIORITY OFF 
GO
ALTER DATABASE [MYDB] SET RECOVERY SIMPLE 
GO
ALTER DATABASE [MYDB] SET  MULTI_USER 
GO
ALTER DATABASE [MYDB] SET PAGE_VERIFY CHECKSUM  
GO
ALTER DATABASE [MYDB] SET DB_CHAINING OFF 
GO
ALTER DATABASE [MYDB] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF ) 
GO
ALTER DATABASE [MYDB] SET TARGET_RECOVERY_TIME = 60 SECONDS 
GO
ALTER DATABASE [MYDB] SET DELAYED_DURABILITY = DISABLED 
GO
EXEC sys.sp_db_vardecimal_storage_format N'MYDB', N'ON'
GO
ALTER DATABASE [MYDB] SET QUERY_STORE = OFF
GO
ALTER DATABASE [MYDB] SET  READ_WRITE 
GO
