We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1a6276 + cc2402f commit 9bdcd4bCopy full SHA for 9bdcd4b
samples/manage/windows-containers/mssql-server-2016-express-sp1-windows/start.ps1
@@ -46,12 +46,12 @@ if ($null -ne $dbs -And $dbs.Length -gt 0){
46
}
47
48
$files = $files -join ","
49
- $sqlcmd = "sp_detach_db $($db.dbName);CREATE DATABASE $($db.dbName) ON $($files) FOR ATTACH ;"
+ $sqlcmd = "sp_detach_db ""$($db.dbName)"";CREATE DATABASE ""$($db.dbName)"" ON $($files) FOR ATTACH ;"
50
51
Write-Verbose "Invoke-Sqlcmd -Query $($sqlcmd) -ServerInstance '.\SQLEXPRESS'"
52
Invoke-Sqlcmd -Query $sqlcmd -ServerInstance ".\SQLEXPRESS"
53
54
55
56
Write-Verbose "Started SQL Server."
57
-while ($true) { Start-Sleep -Seconds 3600 }
+while ($true) { Start-Sleep -Seconds 3600 }
0 commit comments