You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Give Option to Choose SQL PowerShell Module When Restoring From BacPac (#3763)
Fixes#3762
This is a change to how Restore-BcDatabaseFromArtifacts chooses which
PowerShell module to use. I have added an optional parameter,
SqlModuleToUse, with two possible values, sqlps and sqlserver, and a
default value of sqlps to preserve existing functionality.
I've also added the same parameter to New-BcContainer.
---------
Co-authored-by: Matt Traxinger <[email protected]>
Copy file name to clipboardexpand all lines: Bacpac/Restore-BcDatabaseFromArtifacts.ps1
+11-5
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@
22
22
Include this parameter if you want to restore the database asynchronous. A file called <databasePrefix>databasescreated.txt will be created in the containerhelper folder when done
23
23
.ParametersqlTimeout
24
24
SQL Timeout for database restore operations
25
+
.ParameteruseSqlServerModule
26
+
Switch, forces the use of the sqlserver module instead of the sqlps module. Default is to use the sqlps module. The default can be changed in the bcContainerHelperConfig file by setting "useSqlServerModule" = $false.
25
27
#>
26
28
functionRestore-BcDatabaseFromArtifacts {
27
29
Param(
@@ -39,7 +41,8 @@ function Restore-BcDatabaseFromArtifacts {
Copy file name to clipboardexpand all lines: ContainerHandling/New-NavContainer.ps1
+5-2
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,8 @@
179
179
Use Get-AlLanguageExtensionFromArtifacts -artifactUrl (Get-BCArtifactUrl -select NextMajor -accept_insiderEula) to get latest insider .vsix
180
180
.ParametersqlTimeout
181
181
SQL Timeout for database restore operations
182
+
.ParameteruseSqlServerModule
183
+
Switch, forces the use of the sqlserver module instead of the sqlps module. Default is to use the sqlps module. The default can be changed in the bcContainerHelperConfig file by setting "useSqlServerModule" = $false.
Copy file name to clipboardexpand all lines: ReleaseNotes.txt
+4
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
6.0.30
2
+
Issue 3762 Give Option to Choose SQL PowerShell Module When Restoring From BacPac
3
+
There are instances where sqlps does not work as expected when it is installed. This change adds a switch parameter, useSqlServerModule, to Restore-BcDatabaseFromArtifacts, New-NavContainer, and the BcContainerHelper config file.
4
+
1
5
6.0.29
2
6
Issue 3591 When using Publish-NAVApp to publish an app, which fails compilation in the service, the command might hang forever - the fix for this is a temporary hack put in place for the versions which doesn't work.
3
7
Improve performance and reduce memory consumption when creating and pushing NuGet packages
0 commit comments