Skip to content

Commit 5be66b4

Browse files
authored
SMO moved to SQLTranscriptase
1 parent c97cdf2 commit 5be66b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+232
-472
lines changed

Scripts/00_RunAllScripts.ps1

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,6 @@ catch
4545
Throw('SQLTranscriptase.psm1 not found')
4646
}
4747

48-
try
49-
{
50-
Import-Module ".\LoadSQLSmo.psm1"
51-
}
52-
catch
53-
{
54-
Throw('LoadSQLSmo.psm1 not found')
55-
}
56-
5748
LoadSQLSMO
5849

5950
# Init

Scripts/01_Server_Appliance.ps1

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,6 @@ catch
5151
Throw('SQLTranscriptase.psm1 not found')
5252
}
5353

54-
try
55-
{
56-
Import-Module ".\LoadSQLSmo.psm1"
57-
}
58-
catch
59-
{
60-
Throw('LoadSQLSmo.psm1 not found')
61-
}
62-
6354
LoadSQLSMO
6455

6556
# Init

Scripts/01_Server_Credentials.ps1

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,6 @@ catch
4444
Throw('SQLTranscriptase.psm1 not found')
4545
}
4646

47-
try
48-
{
49-
Import-Module ".\LoadSQLSmo.psm1"
50-
}
51-
catch
52-
{
53-
Throw('LoadSQLSmo.psm1 not found')
54-
}
55-
5647
LoadSQLSMO
5748

5849
# Init

Scripts/01_Server_DataBases.ps1

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@ catch
4141
Throw('SQLTranscriptase.psm1 not found')
4242
}
4343

44-
try
45-
{
46-
Import-Module ".\LoadSQLSmo.psm1"
47-
}
48-
catch
49-
{
50-
Throw('LoadSQLSmo.psm1 not found')
51-
}
5244

5345
LoadSQLSMO
5446
# Init

Scripts/01_Server_Logins.ps1

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,8 @@ catch
5858
Throw('SQLTranscriptase.psm1 not found')
5959
}
6060

61-
try
62-
{
63-
Import-Module ".\LoadSQLSmo.psm1"
64-
}
65-
catch
66-
{
67-
Throw('LoadSQLSmo.psm1 not found')
68-
}
69-
7061
LoadSQLSMO
62+
7163
function CopyObjectsToFiles($objects, $outDir) {
7264

7365
if (-not (Test-Path $outDir)) {

Scripts/01_Server_Resource_Governor.ps1

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,6 @@ catch
4343
Throw('SQLTranscriptase.psm1 not found')
4444
}
4545

46-
try
47-
{
48-
Import-Module ".\LoadSQLSmo.psm1"
49-
}
50-
catch
51-
{
52-
Throw('LoadSQLSmo.psm1 not found')
53-
}
54-
5546
LoadSQLSMO
5647

5748
# Init

Scripts/01_Server_Roles.ps1

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,6 @@ catch
4343
Throw('SQLTranscriptase.psm1 not found')
4444
}
4545

46-
try
47-
{
48-
Import-Module ".\LoadSQLSmo.psm1"
49-
}
50-
catch
51-
{
52-
Throw('LoadSQLSmo.psm1 not found')
53-
}
54-
5546
LoadSQLSMO
5647

5748
# Init

Scripts/01_Server_Settings.ps1

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,6 @@ catch
4545
Throw('SQLTranscriptase.psm1 not found')
4646
}
4747

48-
try
49-
{
50-
Import-Module ".\LoadSQLSmo.psm1"
51-
}
52-
catch
53-
{
54-
Throw('LoadSQLSmo.psm1 not found')
55-
}
56-
5748
LoadSQLSMO
5849

5950
# Init

Scripts/01_Server_Shares.ps1

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@ catch
4040
Throw('SQLTranscriptase.psm1 not found')
4141
}
4242

43-
try
44-
{
45-
Import-Module ".\LoadSQLSmo.psm1"
46-
}
47-
catch
48-
{
49-
Throw('LoadSQLSmo.psm1 not found')
50-
}
51-
5243
LoadSQLSMO
5344

5445
# Init

Scripts/01_Server_Startup_Procs.ps1

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,8 @@ catch
4343
Throw('SQLTranscriptase.psm1 not found')
4444
}
4545

46-
try
47-
{
48-
Import-Module ".\LoadSQLSmo.psm1"
49-
}
50-
catch
51-
{
52-
Throw('LoadSQLSmo.psm1 not found')
53-
}
54-
5546
LoadSQLSMO
47+
5648
# Init
5749
Set-StrictMode -Version latest;
5850
[string]$BaseFolder = (Get-Item -Path ".\" -Verbose).FullName

0 commit comments

Comments
 (0)