Prechádzať zdrojové kódy

Merge pull request #421 from kppullin/patch-7

Sounds good to me!

Added a 3 minute timeout on the `Invoke-Sqlcmd` actions
Brian Hauer 12 rokov pred
rodič
commit
6516cfe0d2
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      setup-sqlserver.ps1

+ 2 - 2
setup-sqlserver.ps1

@@ -83,9 +83,9 @@ If (-Not (Get-NetFirewallPortFilter | ? LocalPort -Eq "1433")) {
 Write-Host "Creating SQL Server login and populated database..."
 Write-Host "Creating SQL Server login and populated database..."
 
 
 # Connect with Windows Authentication, assuming that we have access.
 # Connect with Windows Authentication, assuming that we have access.
-Invoke-Sqlcmd -InputFile "$basedir\config\create-sqlserver-login-and-database.sql" -OutputSqlErrors $True
+Invoke-Sqlcmd -InputFile "$basedir\config\create-sqlserver-login-and-database.sql" -OutputSqlErrors $True -QueryTimeout 180
 
 
 # Now that benchmarkdbuser has been created, we can connect with those credentials.
 # Now that benchmarkdbuser has been created, we can connect with those credentials.
-Invoke-Sqlcmd -Username benchmarkdbuser -Password B3nchmarkDBPass -Database hello_world -InputFile "$basedir\config\create-sqlserver.sql" -OutputSqlErrors $True
+Invoke-Sqlcmd -Username benchmarkdbuser -Password B3nchmarkDBPass -Database hello_world -InputFile "$basedir\config\create-sqlserver.sql" -OutputSqlErrors $True -QueryTimeout 180
 
 
 Write-Host "Done."
 Write-Host "Done."