mirror of
https://github.com/actions/runner-images.git
synced 2026-01-07 18:58:13 +08:00
added some unneccesary things
This commit is contained in:
@@ -27,9 +27,11 @@ function Test-SqlConnection {
|
||||
$sqlConnection.Open()
|
||||
Write-Host -Object "Connection to database: {0} was successful. Version of SQL Express is: {1}" -f $sqlConnection.Database,$sqlConnection.ServerVersion
|
||||
return $sqlConnection.ServerVersion
|
||||
|
||||
} catch {
|
||||
Write-Host -Object "Connection to SQL Express cannot be established."
|
||||
exit 1
|
||||
|
||||
} finally {
|
||||
## Close the connection when we're done
|
||||
$sqlConnection.Close()
|
||||
|
||||
Reference in New Issue
Block a user