1
0
mirror of https://github.com/Microsoft/sql-server-samples.git synced 2025-12-08 14:58:54 +00:00

Update start.ps1

This commit is contained in:
Perry Skountrianos - MSFT
2016-10-01 21:46:04 -07:00
committed by GitHub
parent e4a5da96ab
commit 51bf454ff0

View File

@ -11,7 +11,7 @@ param(
)
# start the service
Write-Verbose "Starting SQL Server"
Write-Verbose "Starting SQL Server..."
start-service MSSQL`$SQLEXPRESS
if($sa_password -ne "_"){
@ -22,8 +22,6 @@ if($sa_password -ne "_"){
$attach_dbs_cleaned = $attach_dbs.TrimStart('\\').TrimEnd('\\')
Write-Verbose "Attach Database configuration passed: $($attach_dbs_cleaned)"
$dbs = $attach_dbs_cleaned | ConvertFrom-Json
if ($null -ne $dbs -And $dbs.Length -gt 0){
@ -44,4 +42,5 @@ if ($null -ne $dbs -And $dbs.Length -gt 0){
}
}
while ($true) { Start-Sleep -Seconds 3600 }
Write-Verbose "Started SQL Server."
while ($true) { Start-Sleep -Seconds 3600 }