< Back
Test-DevartDatabaseConnection
Post
NAME Test-DevartDatabaseConnection
SYNOPSIS
Try to open the specified connection.
SYNTAX
Test-DevartDatabaseConnection [-Connection] <object> [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Connection <object>
The DevartDatabaseConnectionInfo or connection string that identifies the connection to test.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.Object
The DevartDatabaseConnectionInfo or connection string that identifies the connection to test.
OUTPUTS
System.Boolean
---------- EXAMPLE 1 ----------
$connection = New-DevartSqlDatabaseConnection -Server $serverName -Database $database -UserName $userName
$success = Test-DevartDatabaseConnection -Connection $connection
RELATED LINKS
Online help:
https://docs.devart.com/devops-automati ... ction.html
SYNOPSIS
Try to open the specified connection.
SYNTAX
Test-DevartDatabaseConnection [-Connection] <object> [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Connection <object>
The DevartDatabaseConnectionInfo or connection string that identifies the connection to test.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.Object
The DevartDatabaseConnectionInfo or connection string that identifies the connection to test.
OUTPUTS
System.Boolean
---------- EXAMPLE 1 ----------
$connection = New-DevartSqlDatabaseConnection -Server $serverName -Database $database -UserName $userName
$success = Test-DevartDatabaseConnection -Connection $connection
RELATED LINKS
Online help:
https://docs.devart.com/devops-automati ... ction.html