|
| 1 | +USE master |
| 2 | + |
| 3 | +:setvar path "C:\temp\contactsdb\" |
| 4 | + |
| 5 | +:setvar currentFile "01 Create AddressBook Database.sql" |
| 6 | +PRINT 'Executing $(path)$(currentFile)' |
| 7 | +:r $(path)$(currentFile) |
| 8 | + |
| 9 | +:setvar currentFile "10 Create Contacts Table.sql" |
| 10 | +PRINT 'Executing $(path)$(currentFile)' |
| 11 | +:r $(path)$(currentFile) |
| 12 | + |
| 13 | +:setvar currentFile "15 Create ContactNotes Table.sql" |
| 14 | +PRINT 'Executing $(path)$(currentFile)' |
| 15 | +:r $(path)$(currentFile) |
| 16 | + |
| 17 | +PRINT 'Executing $(path)$(currentFile)' |
| 18 | +:setvar currentFile "20 Create Roles Table.sql" |
| 19 | +:r $(path)$(currentFile) |
| 20 | + |
| 21 | +:setvar currentFile "25 Create ContactRoles Table.sql" |
| 22 | +PRINT 'Executing $(path)$(currentFile)' |
| 23 | +:r $(path)$(currentFile) |
| 24 | + |
| 25 | +:setvar currentFile "30 Create ContactAddresses Table.sql" |
| 26 | +PRINT 'Executing $(path)$(currentFile)' |
| 27 | +:r $(path)$(currentFile) |
| 28 | + |
| 29 | +:setvar currentFile "35 Create PhoneNumberTypes Table.sql" |
| 30 | +PRINT 'Executing $(path)$(currentFile)' |
| 31 | +:r $(path)$(currentFile) |
| 32 | + |
| 33 | +:setvar currentFile "40 Create ContactPhoneNumbers Table.sql" |
| 34 | +PRINT 'Executing $(path)$(currentFile)' |
| 35 | +:r $(path)$(currentFile) |
| 36 | + |
| 37 | +:setvar currentFile "45 Create ContactVerificationDetails Table.sql" |
| 38 | +PRINT 'Executing $(path)$(currentFile)' |
| 39 | +:r $(path)$(currentFile) |
| 40 | + |
| 41 | +:setvar currentFile "50 Insert PhoneNumberTypes.sql" |
| 42 | +PRINT 'Executing $(path)$(currentFile)' |
| 43 | +:r $(path)$(currentFile) |
| 44 | + |
| 45 | +:setvar currentFile "55 Contact Table Trigger.sql" |
| 46 | +PRINT 'Executing $(path)$(currentFile)' |
| 47 | +:r $(path)$(currentFile) |
| 48 | + |
| 49 | +:setvar currentFile "60 Insert Roles.sql" |
| 50 | +PRINT 'Executing $(path)$(currentFile)' |
| 51 | +:r $(path)$(currentFile) |
| 52 | + |
| 53 | +:setvar currentFile "65 Bulk Insert Contacts.sql" |
| 54 | +PRINT 'Executing $(path)$(currentFile)' |
| 55 | +:r $(path)$(currentFile) |
| 56 | + |
| 57 | +:setvar currentFile "70 Bulk Insert Contact Addresses.sql" |
| 58 | +PRINT 'Executing $(path)$(currentFile)' |
| 59 | +:r $(path)$(currentFile) |
| 60 | + |
| 61 | +:setvar currentFile "75 Bulk Insert ContactNotes.sql" |
| 62 | +PRINT 'Executing $(path)$(currentFile)' |
| 63 | +:r $(path)$(currentFile) |
| 64 | + |
| 65 | +:setvar currentFile "80 Bulk Insert ContactPhoneNumbers.sql" |
| 66 | +PRINT 'Executing $(path)$(currentFile)' |
| 67 | +:r $(path)$(currentFile) |
| 68 | + |
| 69 | +:setvar currentFile "85 Bulk Insert ContactRoles.sql" |
| 70 | +PRINT 'Executing $(path)$(currentFile)' |
| 71 | +:r $(path)$(currentFile) |
| 72 | + |
| 73 | +:setvar currentFile "90 Bulk Insert ContactVerificationDetails.sql" |
| 74 | +PRINT 'Executing $(path)$(currentFile)' |
| 75 | +:r $(path)$(currentFile) |
| 76 | + |
| 77 | +PRINT 'All apply scripts successfully executed.' |
| 78 | + |
| 79 | +USE master |
0 commit comments