From 02154aad2e7967f6998f7afc63f09255dcc32a68 Mon Sep 17 00:00:00 2001 From: "Dariy.Nurgaleev" Date: Tue, 17 Mar 2020 23:46:14 +0700 Subject: [PATCH] added description for SQL Express scripts --- images/win/scripts/Installers/Install-SQLExpress.ps1 | 9 +++++++++ images/win/scripts/Installers/Validate-SQLExpress.ps1 | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/images/win/scripts/Installers/Install-SQLExpress.ps1 b/images/win/scripts/Installers/Install-SQLExpress.ps1 index 74d51d80..735ee408 100644 --- a/images/win/scripts/Installers/Install-SQLExpress.ps1 +++ b/images/win/scripts/Installers/Install-SQLExpress.ps1 @@ -1,3 +1,12 @@ +################################################################################ +## File: Install-SQLExpress.ps1 +## Desc: Install SQL Express for Windows +## SQL Version: Microsoft SQL Express 2019 ( 15.00.2000 ) +## InstanceName: SQL2019 +## Username - sa +## Password - P@ssword!! +## Default path - C:\Program Files (x86)\Microsoft SQL Server +################################################################################ function Start-Task { param( [String]$InstallPath, diff --git a/images/win/scripts/Installers/Validate-SQLExpress.ps1 b/images/win/scripts/Installers/Validate-SQLExpress.ps1 index db246910..951e7048 100644 --- a/images/win/scripts/Installers/Validate-SQLExpress.ps1 +++ b/images/win/scripts/Installers/Validate-SQLExpress.ps1 @@ -1,3 +1,7 @@ +################################################################################ +## File: Validate-SQLExpress.ps1 +## Desc: Validate Microsoft SQL Express installation +################################################################################ function Test-SqlConnection { param( [Parameter(Mandatory)] @@ -20,7 +24,7 @@ function Test-SqlConnection { Write-Host -Object "Trying to connect to SQL Express instance: $ServerName" $sqlConnection = New-Object System.Data.SqlClient.SqlConnection $connectionString $sqlConnection.Open() - Write-Host -Object "Connection to SQL Express was successful." + Write-Host -Object "Connection to database: {0} in in was successful. Version of SQL Express is: {1}" -f $sqlConnection.Database,$sqlConnection.ServerVersion } catch { Write-Host -Object "Connection to SQL Express cannot be established." exit 1