-
Notifications
You must be signed in to change notification settings - Fork 0
/
fjb.sql
80 lines (69 loc) · 1.56 KB
/
fjb.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
/*
* Farley Balasuriya ([email protected])
* created: 2006-09-27 00:44:29
*/
-- switch to master database
USE [master];
-- create database: BranchDB
IF DB_ID (N'BranchDB') IS NOT NULL
DROP DATABASE BranchDB;
create database [BranchDB] on PRIMARY
(
-- create the first data device
NAME = N'BranchDB_D01',
FILENAME = N'd:\data\BranchDB_D01.mdf',
SIZE = 100MB,
FILEGROWTH = 20%
)
LOG ON
(
-- create the first log device
NAME = N'BranchDB_L01',
FILENAME = N'd:\data\BranchDB_L01.ldf',
SIZE = 50MB,
FILEGROWTH = 20%
)
COLLATE Latin1_General_CI_AS;
ALTER DATABASE BranchDB SET RECOVERY FULL;
-- create database: SiteDB
IF DB_ID (N'SiteDB') IS NOT NULL
DROP DATABASE SiteDB;
create database [SiteDB] on PRIMARY
(
-- create the first data device
NAME = N'SiteDB_D01',
FILENAME = N'd:\data\SiteDB_D01.mdf',
SIZE = 100MB,
FILEGROWTH = 20%
)
LOG ON
(
-- create the first log device
NAME = N'SiteDB_L01',
FILENAME = N'd:\data\SiteDB_L01.ldf',
SIZE = 50MB,
FILEGROWTH = 20%
)
COLLATE Latin1_General_CI_AS;
ALTER DATABASE SiteDB SET RECOVERY FULL;
-- create database: VODLiveBackend
IF DB_ID (N'VODLiveBackend') IS NOT NULL
DROP DATABASE VODLiveBackend;
create database [VODLiveBackend] on PRIMARY
(
-- create the first data device
NAME = N'VODLiveBackend_D01',
FILENAME = N'd:\data\VODLiveBackend_D01.mdf',
SIZE = 100MB,
FILEGROWTH = 20%
)
LOG ON
(
-- create the first log device
NAME = N'VODLiveBackend_L01',
FILENAME = N'd:\data\VODLiveBackend_L01.ldf',
SIZE = 50MB,
FILEGROWTH = 20%
)
COLLATE Latin1_General_CI_AS;
ALTER DATABASE VODLiveBackend SET RECOVERY FULL;