-
Notifications
You must be signed in to change notification settings - Fork 0
/
KASKBlog-database-schema.sql
103 lines (102 loc) · 6.74 KB
/
KASKBlog-database-schema.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
USE [master]
GO
/****** Object: Database [KASKBlogDatabase] Script Date: 12/8/2013 3:52:31 PM ******/
CREATE DATABASE [KASKBlogDatabase]
CONTAINMENT = NONE
ON PRIMARY
( NAME = N'KASKBlogDatabase', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\KASKBlogDatabase.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
LOG ON
( NAME = N'KASKBlogDatabase_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\KASKBlogDatabase_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO
ALTER DATABASE [KASKBlogDatabase] SET COMPATIBILITY_LEVEL = 110
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [KASKBlogDatabase].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [KASKBlogDatabase] SET ANSI_NULL_DEFAULT ON
GO
ALTER DATABASE [KASKBlogDatabase] SET ANSI_NULLS ON
GO
ALTER DATABASE [KASKBlogDatabase] SET ANSI_PADDING ON
GO
ALTER DATABASE [KASKBlogDatabase] SET ANSI_WARNINGS ON
GO
ALTER DATABASE [KASKBlogDatabase] SET ARITHABORT ON
GO
ALTER DATABASE [KASKBlogDatabase] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [KASKBlogDatabase] SET AUTO_CREATE_STATISTICS ON
GO
ALTER DATABASE [KASKBlogDatabase] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [KASKBlogDatabase] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [KASKBlogDatabase] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [KASKBlogDatabase] SET CURSOR_DEFAULT LOCAL
GO
ALTER DATABASE [KASKBlogDatabase] SET CONCAT_NULL_YIELDS_NULL ON
GO
ALTER DATABASE [KASKBlogDatabase] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [KASKBlogDatabase] SET QUOTED_IDENTIFIER ON
GO
ALTER DATABASE [KASKBlogDatabase] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [KASKBlogDatabase] SET DISABLE_BROKER
GO
ALTER DATABASE [KASKBlogDatabase] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [KASKBlogDatabase] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [KASKBlogDatabase] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [KASKBlogDatabase] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [KASKBlogDatabase] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [KASKBlogDatabase] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [KASKBlogDatabase] SET HONOR_BROKER_PRIORITY OFF
GO
ALTER DATABASE [KASKBlogDatabase] SET RECOVERY FULL
GO
ALTER DATABASE [KASKBlogDatabase] SET MULTI_USER
GO
ALTER DATABASE [KASKBlogDatabase] SET PAGE_VERIFY NONE
GO
ALTER DATABASE [KASKBlogDatabase] SET DB_CHAINING OFF
GO
ALTER DATABASE [KASKBlogDatabase] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF )
GO
ALTER DATABASE [KASKBlogDatabase] SET TARGET_RECOVERY_TIME = 0 SECONDS
GO
EXEC sys.sp_db_vardecimal_storage_format N'KASKBlogDatabase', N'ON'
GO
USE [KASKBlogDatabase]
GO
/****** Object: Table [dbo].[Posts] Script Date: 12/8/2013 3:52:31 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Posts](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Title] [varchar](255) NULL,
[Body] [text] NULL,
CONSTRAINT [PK_Posts] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
USE [master]
GO
ALTER DATABASE [KASKBlogDatabase] SET READ_WRITE
GO