-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcontactdb.sql
More file actions
79 lines (58 loc) · 2.25 KB
/
contactdb.sql
File metadata and controls
79 lines (58 loc) · 2.25 KB
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
USE master
:setvar path "C:\temp\contactsdb\"
:setvar currentFile "01 Create AddressBook Database.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
:setvar currentFile "10 Create Contacts Table.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
:setvar currentFile "15 Create ContactNotes Table.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
PRINT 'Executing $(path)$(currentFile)'
:setvar currentFile "20 Create Roles Table.sql"
:r $(path)$(currentFile)
:setvar currentFile "25 Create ContactRoles Table.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
:setvar currentFile "30 Create ContactAddresses Table.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
:setvar currentFile "35 Create PhoneNumberTypes Table.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
:setvar currentFile "40 Create ContactPhoneNumbers Table.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
:setvar currentFile "45 Create ContactVerificationDetails Table.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
:setvar currentFile "50 Insert PhoneNumberTypes.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
:setvar currentFile "55 Contact Table Trigger.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
:setvar currentFile "60 Insert Roles.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
:setvar currentFile "65 Bulk Insert Contacts.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
:setvar currentFile "70 Bulk Insert Contact Addresses.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
:setvar currentFile "75 Bulk Insert ContactNotes.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
:setvar currentFile "80 Bulk Insert ContactPhoneNumbers.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
:setvar currentFile "85 Bulk Insert ContactRoles.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
:setvar currentFile "90 Bulk Insert ContactVerificationDetails.sql"
PRINT 'Executing $(path)$(currentFile)'
:r $(path)$(currentFile)
PRINT 'All apply scripts successfully executed.'
USE master