Drop back to SQL Server 2016 Express LocalDB
This commit is contained in:
parent
7fd65f52cf
commit
7a5981131c
|
|
@ -296,7 +296,7 @@ jobs:
|
||||||
buildArgs: -test "/p:SkipIISBackwardsCompatibilityTests=true /p:SkipIISTests=true /p:SkipIISExpressTests=true /p:SkipIISForwardsCompatibilityTests=true"
|
buildArgs: -test "/p:SkipIISBackwardsCompatibilityTests=true /p:SkipIISTests=true /p:SkipIISExpressTests=true /p:SkipIISForwardsCompatibilityTests=true"
|
||||||
beforeBuild:
|
beforeBuild:
|
||||||
- powershell: ./eng/scripts/InstallSqlServerLocalDB.ps1
|
- powershell: ./eng/scripts/InstallSqlServerLocalDB.ps1
|
||||||
displayName: Install SQL Server 2017 Express LocalDB
|
displayName: Install SQL Server 2016 Express LocalDB
|
||||||
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
|
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
|
||||||
displayName: Setup IISExpress test certificates and schema
|
displayName: Setup IISExpress test certificates and schema
|
||||||
- powershell: "& ./.azure/pipelines/tools/SetupTestEnvironment.ps1 Setup signalrclienttests.exe"
|
- powershell: "& ./.azure/pipelines/tools/SetupTestEnvironment.ps1 Setup signalrclienttests.exe"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs SQL Server 2017 Express LocalDB on a machine.
|
Installs SQL Server 2016 Express LocalDB on a machine.
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This script installs Microsoft SQL Server 2016 Express LocalDB on a machine.
|
This script installs Microsoft SQL Server 2016 Express LocalDB on a machine.
|
||||||
.LINK
|
.LINK
|
||||||
https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-2016-express-localdb?view=sql-server-2017
|
https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-2016-express-localdb?view=sql-server-2016
|
||||||
https://docs.microsoft.com/en-us/sql/database-engine/install-windows/install-sql-server-from-the-command-prompt?view=sql-server-2017
|
https://docs.microsoft.com/en-us/sql/database-engine/install-windows/install-sql-server-from-the-command-prompt?view=sql-server-2016
|
||||||
#>
|
#>
|
||||||
|
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
|
|
@ -17,13 +17,13 @@ mkdir $intermedateDir -ErrorAction Ignore | Out-Null
|
||||||
$bootstrapper = "$intermedateDir\SQLExpressInstaller.exe"
|
$bootstrapper = "$intermedateDir\SQLExpressInstaller.exe"
|
||||||
$ProgressPreference = 'SilentlyContinue' # Workaround PowerShell/PowerShell#2138
|
$ProgressPreference = 'SilentlyContinue' # Workaround PowerShell/PowerShell#2138
|
||||||
|
|
||||||
Write-Host "Installing SQL Server 2017 Express LocalDB" -f Magenta
|
Write-Host "Installing SQL Server 2016 Express LocalDB" -f Magenta
|
||||||
|
|
||||||
# Get the bootstrapper.
|
# Get the bootstrapper.
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
Write-Host "Downloading 'SQLServer2017-SSEI-Expr.exe' to '$bootstrapper'."
|
Write-Host "Downloading 'SQLServer2016-SSEI-Expr.exe' to '$bootstrapper'."
|
||||||
Invoke-WebRequest -OutFile $bootstrapper -Uri `
|
Invoke-WebRequest -OutFile $bootstrapper -Uri `
|
||||||
"https://download.microsoft.com/download/5/E/9/5E9B18CC-8FD5-467E-B5BF-BADE39C51F73/SQLServer2017-SSEI-Expr.exe"
|
"https://download.microsoft.com/download/3/7/6/3767D272-76A1-4F31-8849-260BD37924E4/SQLServer2016-SSEI-Expr.exe"
|
||||||
|
|
||||||
# Download SqlLocalDB.msi.
|
# Download SqlLocalDB.msi.
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue