-
Notifications
You must be signed in to change notification settings - Fork 0
/
CreateDateBase.SQL
144 lines (99 loc) · 3.47 KB
/
CreateDateBase.SQL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
USE [master]
GO
/****** Object: Database [Face_AttendanceDB] Script Date: 2019/5/23 星期四 20:12:25 ******/
CREATE DATABASE [Face_AttendanceDB]
CONTAINMENT = NONE
ON PRIMARY
( NAME = N'Face_AttendanceDB', FILENAME = N'D:\SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA\Face_AttendanceDB.mdf' , SIZE = 8192KB , MAXSIZE = UNLIMITED, FILEGROWTH = 65536KB )
LOG ON
( NAME = N'Face_AttendanceDB_log', FILENAME = N'D:\SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA\Face_AttendanceDB_log.ldf' , SIZE = 8192KB , MAXSIZE = 2048GB , FILEGROWTH = 65536KB )
GO
ALTER DATABASE [Face_AttendanceDB] SET COMPATIBILITY_LEVEL = 140
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [Face_AttendanceDB].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [Face_AttendanceDB] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET ANSI_NULLS OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET ANSI_PADDING OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET ARITHABORT OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [Face_AttendanceDB] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [Face_AttendanceDB] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET DISABLE_BROKER
GO
ALTER DATABASE [Face_AttendanceDB] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [Face_AttendanceDB] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET HONOR_BROKER_PRIORITY OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET RECOVERY SIMPLE
GO
ALTER DATABASE [Face_AttendanceDB] SET MULTI_USER
GO
ALTER DATABASE [Face_AttendanceDB] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [Face_AttendanceDB] SET DB_CHAINING OFF
GO
ALTER DATABASE [Face_AttendanceDB] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF )
GO
ALTER DATABASE [Face_AttendanceDB] SET TARGET_RECOVERY_TIME = 60 SECONDS
GO
ALTER DATABASE [Face_AttendanceDB] SET DELAYED_DURABILITY = DISABLED
GO
ALTER DATABASE [Face_AttendanceDB] SET QUERY_STORE = OFF
GO
USE [Face_AttendanceDB]
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 [Face_AttendanceDB] SET READ_WRITE
GO