-
Notifications
You must be signed in to change notification settings - Fork 2
/
SqlDeepDatabasePublisher.psm1
442 lines (432 loc) · 28.5 KB
/
SqlDeepDatabasePublisher.psm1
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
Using module .\SqlDeepCommon.psm1
function Find-SqlPackageLocation {
#Downloaded from https://www.powershellgallery.com/packages/PublishDacPac/
<#
.SYNOPSIS
Lists all locations of SQLPackage.exe files on the machine
.DESCRIPTION
Simply finds and lists the location path to every version of SqlPackage.exe on the machine.
For information on SqlPackage.exe see https://docs.microsoft.com/en-us/sql/tools/sqlpackage
.EXAMPLE
Find-SqlPackageLocations
Simply lists all instances of SqlPackage.exe on the host machine
.INPUTS
None
.OUTPUTS
Output is written to standard output.
.LINK
https://github.com/DrJohnT/PublishDacPac
.NOTES
Written by (c) Dr. John Tunnicliffe, 2019-2021 https://github.com/DrJohnT/PublishDacPac
This PowerShell script is released under the MIT license http://www.opensource.org/licenses/MIT
#>
[OutputType([string])]
param(
[Parameter(Mandatory=$false,HelpMessage="Force function to return this path as SqlPackage.exe file path, if exists.")]$SqlPackageFilePath
)
begin {
Write-Host ('Find-SqlPackageLocation started.')
Write-Host ('Find-SqlPackageLocation called with ' + $SqlPackageFilePath)
[string]$myAnswer=$null
[string]$myExeName = "SqlPackage.exe";
[string]$mySqlPackageFilePath=$null;
[string]$mySqlPackageFolderPath=$null;
}
process{
[string]$myProductVersion=$null
try {
# Get SQL Server locations
[System.Management.Automation.PathInfo[]]$myPathsToSearch = Resolve-Path -Path "${env:ProgramFiles}\Microsoft SQL Server\*\DAC\bin" -ErrorAction SilentlyContinue;
$myPathsToSearch += Resolve-Path -Path "${env:ProgramFiles}\Microsoft SQL Server\*\Tools\Binn" -ErrorAction SilentlyContinue;
$myPathsToSearch += Resolve-Path -Path "${env:ProgramFiles(x86)}\Microsoft SQL Server\*\Tools\Binn" -ErrorAction SilentlyContinue;
$myPathsToSearch += Resolve-Path -Path "${env:ProgramFiles(x86)}\Microsoft SQL Server\*\DAC\bin" -ErrorAction SilentlyContinue;
$myPathsToSearch += Resolve-Path -Path "${env:ProgramFiles(x86)}\Microsoft Visual Studio *\Common7\IDE\Extensions\Microsoft\SQLDB\DAC" -ErrorAction SilentlyContinue;
$myPathsToSearch += Resolve-Path -Path "${env:ProgramFiles(x86)}\Microsoft Visual Studio\*\*\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\" -ErrorAction SilentlyContinue;
# For those that install SQLPackage.exe in a completely different location, set environment variable CustomSqlPackageInstallLocation
$myCustomInstallLocation = [Environment]::GetEnvironmentVariable('CustomSqlPackageInstallLocation');
$myCustomInstallLocation = Clear-FolderPath -FolderPath $myCustomInstallLocation
if ($myCustomInstallLocation -ne '' -and $null -ne $myCustomInstallLocation) {
if (Test-Path $myCustomInstallLocation) {
$myPathsToSearch += Resolve-Path -Path ($myCustomInstallLocation+'\') -ErrorAction SilentlyContinue;
}
}
foreach ($myPathToSearch in $myPathsToSearch) {
[System.IO.FileSystemInfo[]]$mySqlPackageExes += Get-Childitem -Path $myPathToSearch -Recurse -Include $myExeName -ErrorAction SilentlyContinue;
}
# list all the locations found
[string]$myCurrentVersion=''
foreach ($mySqlPackageExe in $mySqlPackageExes) {
$myProductVersion = $mySqlPackageExe.VersionInfo.ProductVersion.Substring(0,2);
Write-Host ('Product Version is ' + $myCurrentVersion + ' and Currently loaded version is ' + $myProductVersion)
if ($myProductVersion -gt $myCurrentVersion){
$myCurrentVersion=$myProductVersion
$myAnswer=$mySqlPackageExe
Write-Host ('Product Version changes to ' + $myCurrentVersion)
}
Write-Host ($myProductVersion + ' ' + $mySqlPackageExe);
}
}
catch {
Write-Error ('Find-SqlPackageLocations failed with error: ' + $_.ToString());
}
if ($null -ne $SqlPackageFilePath -and ($SqlPackageFilePath.Length) -ge 10) {
if (Test-Path -Path $SqlPackageFilePath -PathType Leaf) {
$myAnswer=$SqlPackageFilePath
Write-Host ('User defined SqlPackageFilePath that send by caller was used with path: ' + $myAnswer)
}else{
Write-Host ('User defined SqlPackageFilePath parameter path does not exists' + $SqlPackageFilePath)
}
}else{
Write-Host ('User defined SqlPackageFilePath parameter is null or empty' + $SqlPackageFilePath + ', file length is ' + $SqlPackageFilePath.Length.ToString())
}
if ($myAnswer) {
$mySqlPackageFilePath=$myAnswer
$mySqlPackageFolderPath=(Get-Item -Path $mySqlPackageFilePath).DirectoryName
$mySqlPackageFolderPath=Clear-FolderPath -FolderPath $mySqlPackageFolderPath
if (-not ($env:Path).Contains($mySqlPackageFolderPath)) {$env:path = $env:path + ';'+$mySqlPackageFolderPath+';'}
}
Write-Host $myAnswer
return $myAnswer
}
end {
if ($null -eq $myAnswer) {
Write-Host 'DacPac module does not found, please Downloaded and install it from official site https://learn.microsoft.com/en-us/sql/tools/sqlpackage/sqlpackage-download?view=sql-server-ver16 or install informal version from https://www.powershellgallery.com/packages/PublishDacPac/ or run this command in powershell console: Install-Module -Name PublishDacPac'
}
Write-Host ('Find-SqlPackageLocation finished.')
}
}
function Export-DatabaseDacPac {
[OutputType([bool])]
param (
[Parameter(Mandatory=$true,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,HelpMessage="Source database connection string")][ValidateNotNullOrEmpty()][string]$ConnectionString,
[Parameter(Mandatory=$true,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,HelpMessage=".dapac file path to export")][ValidateNotNullOrEmpty()][string]$DacpacFilePath
)
begin {}
process {
[bool]$myAnswer=$false;
try
{
if (Test-Path -Path $DacpacFilePath) {Remove-Item -Path $DacpacFilePath -Force}
$null=SqlPackage /Action:Extract /OverwriteFiles:true /SourceConnectionString:$ConnectionString /TargetFile:$DacpacFilePath /Properties:VerifyExtraction=True /Properties:IgnoreExtendedProperties=False /Properties:IgnorePermissions=False /Properties:IgnoreUserLoginMappings=False /Properties:ExtractReferencedServerScopedElements=True /Properties:ExtractAllTableData=False /Properties:TableData=[maintenance].[_CatalogOfFields] /Properties:TableData=[maintenance].[_CatalogOfTables] /Properties:TableData=[maintenance].[Lookup_VariableSource] /Properties:TableData=[maintenance].[Variables];
if (Test-Path -Path $DacpacFilePath) {$myAnswer=$true}
return $myAnswer
}
catch
{
$myAnswer=$false;
Write-Error($_.ToString());
Throw;
}
return $myAnswer;
}
end {}
}
function Get-PrePublishReport {
[OutputType([bool])]
param (
[Parameter(Mandatory=$true,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,HelpMessage=".dapac file path to import")][ValidateNotNullOrEmpty()][string]$DacpacFilePath,
[Parameter(Mandatory=$true,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,HelpMessage="Target database connection string")][ValidateNotNullOrEmpty()][string]$ConnectionString,
[Parameter(Mandatory=$true,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,HelpMessage="Report file path to export")][ValidateNotNullOrEmpty()][string]$ReportFilePath
)
begin {}
process {
[bool]$myAnswer=$false;
try
{
if (Test-Path -Path $DacpacFilePath) {
$null=SqlPackage /Action:DeployReport /OutputPath:$ReportFilePath /OverwriteFiles:true /TargetConnectionString:$ConnectionString /SourceFile:$DacpacFilePath /Properties:AllowIncompatiblePlatform=True /Properties:BackupDatabaseBeforeChanges=True /Properties:BlockOnPossibleDataLoss=False /Properties:DeployDatabaseInSingleUserMode=True /Properties:DisableAndReenableDdlTriggers=True /Properties:DropConstraintsNotInSource=True /Properties:DropDmlTriggersNotInSource=True /Properties:DropExtendedPropertiesNotInSource=True /Properties:DropIndexesNotInSource=True /Properties:DropObjectsNotInSource=True /Properties:DropPermissionsNotInSource=False /Properties:DropRoleMembersNotInSource=False /Properties:DropStatisticsNotInSource=True /Properties:GenerateSmartDefaults=True /Properties:IgnoreAuthorizer=False /Properties:IgnoreExtendedProperties=False /Properties:IgnoreFilegroupPlacement=False /Properties:IgnoreFillFactor=False /Properties:IgnoreIndexPadding=False /Properties:IgnoreObjectPlacementOnPartitionScheme=False /Properties:IgnorePermissions=False /Properties:IgnoreRoleMembership=False /Properties:IgnoreSemicolonBetweenStatements=False /Properties:IncludeTransactionalScripts=True /Properties:VerifyDeployment=True;
$myAnswer=$true
}
return $myAnswer
}
catch
{
$myAnswer=$false;
Write-Error($_.ToString());
Throw;
}
return $myAnswer;
}
end {}
}
function Publish-DatabaseDacPac {
[OutputType([bool])]
param (
[Parameter(Mandatory=$true,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,HelpMessage=".dapac file path to import")][ValidateNotNullOrEmpty()][string]$DacpacFilePath,
[Parameter(Mandatory=$true,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,HelpMessage="Target database connection string")][ValidateNotNullOrEmpty()][string]$ConnectionString
)
begin {}
process {
[bool]$myAnswer=$false;
try
{
if (Test-Path -Path $DacpacFilePath) {
$null=SqlPackage /Action:Publish /OverwriteFiles:true /TargetConnectionString:$ConnectionString /SourceFile:$DacpacFilePath /Diagnostics /Properties:AllowIncompatiblePlatform=True /Properties:BackupDatabaseBeforeChanges=True /Properties:BlockOnPossibleDataLoss=False /Properties:DeployDatabaseInSingleUserMode=True /Properties:DisableAndReenableDdlTriggers=True /Properties:DropConstraintsNotInSource=True /Properties:DropDmlTriggersNotInSource=True /Properties:DropExtendedPropertiesNotInSource=True /Properties:DropIndexesNotInSource=True /Properties:DropObjectsNotInSource=True /Properties:DropPermissionsNotInSource=False /Properties:DropRoleMembersNotInSource=False /Properties:DropStatisticsNotInSource=True /Properties:GenerateSmartDefaults=True /Properties:IgnoreAuthorizer=False /Properties:IgnoreExtendedProperties=False /Properties:IgnoreFilegroupPlacement=False /Properties:IgnoreFillFactor=False /Properties:IgnoreIndexPadding=False /Properties:IgnoreObjectPlacementOnPartitionScheme=False /Properties:IgnorePermissions=False /Properties:IgnoreRoleMembership=False /Properties:IgnoreSemicolonBetweenStatements=False /Properties:IncludeTransactionalScripts=True /Properties:VerifyDeployment=True;
$myAnswer=$true
}
return $myAnswer
}
catch
{
$myAnswer=$false;
Write-Error($_.ToString());
Throw;
}
return $myAnswer;
}
end {}
}
function Get-DacPacDeltaScript {
[OutputType([bool])]
[CmdletBinding(DefaultParameterSetName = 'dac_dac')]
param (
[Parameter(Mandatory=$false,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,ParameterSetName = 'cstr_cstr',HelpMessage="Refrence database connection string")][ValidateNotNullOrEmpty()]
[Parameter(Mandatory=$false,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,ParameterSetName = 'cstr_dac',HelpMessage="Refrence database connection string")][ValidateNotNullOrEmpty()]
[string]$RefrenceDatabaseConnectionString,
[Parameter(Mandatory=$false,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,ParameterSetName = 'dac_cstr',HelpMessage="Refrence .dapac file path")][ValidateNotNullOrEmpty()]
[Parameter(Mandatory=$false,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,ParameterSetName = 'dac_dac',HelpMessage="Refrence .dapac file path")][ValidateNotNullOrEmpty()]
[string]$RefrenceDacpacFilePath,
[Parameter(Mandatory=$false,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,ParameterSetName = 'cstr_cstr',HelpMessage="Target of update database connection string")][ValidateNotNullOrEmpty()]
[Parameter(Mandatory=$false,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,ParameterSetName = 'dac_cstr',HelpMessage="Target of update database connection string")][ValidateNotNullOrEmpty()]
[string]$TargetDatabaseConnectionString,
[Parameter(Mandatory=$false,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,ParameterSetName = 'cstr_dac',HelpMessage="A .dapac file path use as target of update")][ValidateNotNullOrEmpty()]
[Parameter(Mandatory=$false,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,ParameterSetName = 'dac_dac',HelpMessage="A .dapac file path use as target of update")][ValidateNotNullOrEmpty()]
[string]$TargetDacpacFilePath,
[Parameter(Mandatory=$true,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,HelpMessage="Delta script file path")][ValidateNotNullOrEmpty()][string]$DeltaScriptFilePath,
[Parameter(Mandatory=$true,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,HelpMessage="Target database name")][ValidateNotNullOrEmpty()][string]$DatabaseName
)
begin {}
process {
[bool]$myAnswer=$false;
try
{
switch ($PSCmdlet.ParameterSetName) {
'dac_dac' {
if ((Test-Path -Path $RefrenceDacpacFilePath) -and (Test-Path -Path $TargetDacpacFilePath)) {
if (Test-Path -Path $DeltaScriptFilePath) {Remove-Item -Path $DeltaScriptFilePath -Force}
$null=SqlPackage /Action:Script /OverwriteFiles:true /SourceFile:$RefrenceDacpacFilePath /TargetFile:$TargetDacpacFilePath /TargetDatabaseName:$DatabaseName /OutputPath:$DeltaScriptFilePath /Properties:DropObjectsNotInSource=True;
if (Test-Path -Path $DeltaScriptFilePath) {$myAnswer=$true}
}
}
'dac_cstr'{
if (Test-Path -Path $RefrenceDacpacFilePath) {
if (Test-Path -Path $DeltaScriptFilePath) {Remove-Item -Path $DeltaScriptFilePath -Force}
$null=SqlPackage /Action:Script /OverwriteFiles:true /SourceFile:$RefrenceDacpacFilePath /TargetConnectionString:$TargetDatabaseConnectionString /TargetDatabaseName:$DatabaseName /OutputPath:$DeltaScriptFilePath /Properties:DropObjectsNotInSource=True;
if (Test-Path -Path $DeltaScriptFilePath) {$myAnswer=$true}
}
}
'cstr_dac'{
if (Test-Path -Path $TargetDacpacFilePath) {
if (Test-Path -Path $DeltaScriptFilePath) {Remove-Item -Path $DeltaScriptFilePath -Force}
$null=SqlPackage /Action:Script /OverwriteFiles:true /SourceConnectionString:$RefrenceDatabaseConnectionString /TargetFile:$TargetDacpacFilePath /TargetDatabaseName:$DatabaseName /OutputPath:$DeltaScriptFilePath /Properties:DropObjectsNotInSource=True;
if (Test-Path -Path $DeltaScriptFilePath) {$myAnswer=$true}
}
}
'cstr_cstr'{
if (Test-Path -Path $DeltaScriptFilePath) {Remove-Item -Path $DeltaScriptFilePath -Force}
$null=SqlPackage /Action:Script /OverwriteFiles:true /SourceConnectionString:$RefrenceDatabaseConnectionString /TargetConnectionString:$TargetDatabaseConnectionString /TargetDatabaseName:$DatabaseName /OutputPath:$DeltaScriptFilePath /Properties:DropObjectsNotInSource=True;
if (Test-Path -Path $DeltaScriptFilePath) {$myAnswer=$true}
}
}
return $myAnswer
}
catch
{
$myAnswer=$false;
Write-Error($_.ToString());
Throw;
}
return $myAnswer;
}
end {}
}
function Publish-DacPacDeltaScript {
[OutputType([bool])]
param (
[Parameter(Mandatory=$true,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,HelpMessage="Delta script file path")][ValidateNotNullOrEmpty()][string]$DeltaScriptFilePath,
[Parameter(Mandatory=$true,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,HelpMessage="Target of update database connection string")][ValidateNotNullOrEmpty()][string]$ConnectionString
)
begin {}
process {
[bool]$myAnswer=$false;
try
{
if (Test-Path -Path $DeltaScriptFilePath) {
Invoke-Sqlcmd -ConnectionString $ConnectionString -InputFile $DeltaScriptFilePath
$myAnswer=$true
}
return $myAnswer
}
catch
{
$myAnswer=$false;
Write-Error($_.ToString());
Throw;
}
return $myAnswer;
}
end {}
}
<#
Refrences:
SqlPackage stanalone install package for all OS platforms:
https://learn.microsoft.com/en-us/sql/tools/sqlpackage/sqlpackage-download?view=sql-server-ver16
SqlPackage parameters:
https://learn.microsoft.com/en-us/sql/tools/sqlpackage/sqlpackage-export?view=sql-server-ver16
https://learn.microsoft.com/en-us/sql/tools/sqlpackage/sqlpackage-extract?view=sql-server-ver16
https://learn.microsoft.com/en-us/sql/tools/sqlpackage/sqlpackage-pipelines?view=sql-server-ver16
Helps:
https://www.mssqltips.com/sqlservertip/4759/sql-server-database-schema-synchronization-via-sqlpackageexe-and-powershell/
https://stackoverflow.com/questions/20673516/command-line-api-for-schema-compare-in-ssdt-sql-server-database-project
#>
# SIG # Begin signature block
# MIIbxQYJKoZIhvcNAQcCoIIbtjCCG7ICAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCED5TDdfN64+Cf
# /8FsirFqpytCyVEXJ+Uhmm1fvnjcyaCCFhswggMUMIIB/KADAgECAhAT2c9S4U98
# jEh2eqrtOGKiMA0GCSqGSIb3DQEBBQUAMBY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