< Back
Install-DbaSqlWatch
Post
NAME Install-DbaSqlWatch
SYNOPSIS
Installs or updates SqlWatch.
SYNTAX
Install-DbaSqlWatch [-SqlInstance] <Sqlcollaborative.Dbatools.Parameter.DbaInstanceParameter[]> [[-SqlCredential]
<Pscredential>] [[-Database] <String>] [[-LocalFile] <String>] [-PreRelease <Switch>] [-Force <Switch>]
[-EnableException <Switch>] [<CommonParameters>]
DESCRIPTION
Downloads, extracts and installs or updates SqlWatch.
https://sqlwatch.io/
PARAMETERS
-Database [<String>]
Specifies the database to install SqlWatch into. Defaults to SQLWATCH.
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-EnableException [<Switch>]
By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message.
This avoids overwhelming you with "sea of red" exceptions, but is inconvenient because it basically disables
advanced scripting.
Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own
try/catch.
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-Force [<Switch>]
If this switch is enabled, SqlWatch will be downloaded from the internet even if previously cached.
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-LocalFile [<String>]
Specifies the path to a local file to install SqlWatch from. This *should* be the zipfile as distributed by
the maintainers.
If this parameter is not specified, the latest version will be downloaded and installed from
https://github.com/marcingminski/sqlwatch
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-PreRelease [<Switch>]
If specified, a pre-release (beta) will be downloaded rather than a stable release
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-SqlCredential [<Pscredential>]
Login to the target instance using alternative credentials. Accepts PowerShell credentials (Get-Credential).
Windows Authentication, SQL Server Authentication, Active Directory - Password, and Active Directory -
Integrated are all supported.
For MFA support, please use Connect-DbaInstance.
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-SqlInstance [<Sqlcollaborative.Dbatools.Parameter.DbaInstanceParameter[]>]
SQL Server name or SMO object representing the SQL Server to connect to.
Required? false
Position? named
Default value
Accept pipeline input? False
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
OUTPUTS
NOTES
Tags: Community, SqlWatch
Author: Ken K (github.com/koglerk)
Website: https://dbatools.io
Copyright: (c) 2018 by dbatools, licensed under MIT
License: MIT https://opensource.org/licenses/MIT
https://sqlwatch.io
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Install-DbaSqlWatch -SqlInstance server1
Logs into server1 with Windows authentication and then installs SqlWatch in the SQLWATCH database.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Install-DbaSqlWatch -SqlInstance server1\\instance1 -Database DBA
Logs into server1\\instance1 with Windows authentication and then installs SqlWatch in the DBA database.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Install-DbaSqlWatch -SqlInstance server1\\instance1 -Database DBA -SqlCredential $cred
Logs into server1\\instance1 with SQL authentication and then installs SqlWatch in the DBA database.
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Install-DbaSqlWatch -SqlInstance sql2016\\standardrtm, sql2016\\sqlexpress, sql2014
Logs into sql2016\\standardrtm, sql2016\\sqlexpress and sql2014 with Windows authentication and then installs
SqlWatch in the SQLWATCH database.
-------------------------- EXAMPLE 5 --------------------------
PS C:\\>$servers = "sql2016\\standardrtm", "sql2016\\sqlexpress", "sql2014"
$servers | Install-DbaSqlWatch
Logs into sql2016\\standardrtm, sql2016\\sqlexpress and sql2014 with Windows authentication and then installs
SqlWatch in the SQLWATCH database.
RELATED LINKS
https://dbatools.io/Install-DbaSqlWatch
SYNOPSIS
Installs or updates SqlWatch.
SYNTAX
Install-DbaSqlWatch [-SqlInstance] <Sqlcollaborative.Dbatools.Parameter.DbaInstanceParameter[]> [[-SqlCredential]
<Pscredential>] [[-Database] <String>] [[-LocalFile] <String>] [-PreRelease <Switch>] [-Force <Switch>]
[-EnableException <Switch>] [<CommonParameters>]
DESCRIPTION
Downloads, extracts and installs or updates SqlWatch.
https://sqlwatch.io/
PARAMETERS
-Database [<String>]
Specifies the database to install SqlWatch into. Defaults to SQLWATCH.
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-EnableException [<Switch>]
By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message.
This avoids overwhelming you with "sea of red" exceptions, but is inconvenient because it basically disables
advanced scripting.
Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own
try/catch.
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-Force [<Switch>]
If this switch is enabled, SqlWatch will be downloaded from the internet even if previously cached.
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-LocalFile [<String>]
Specifies the path to a local file to install SqlWatch from. This *should* be the zipfile as distributed by
the maintainers.
If this parameter is not specified, the latest version will be downloaded and installed from
https://github.com/marcingminski/sqlwatch
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-PreRelease [<Switch>]
If specified, a pre-release (beta) will be downloaded rather than a stable release
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-SqlCredential [<Pscredential>]
Login to the target instance using alternative credentials. Accepts PowerShell credentials (Get-Credential).
Windows Authentication, SQL Server Authentication, Active Directory - Password, and Active Directory -
Integrated are all supported.
For MFA support, please use Connect-DbaInstance.
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-SqlInstance [<Sqlcollaborative.Dbatools.Parameter.DbaInstanceParameter[]>]
SQL Server name or SMO object representing the SQL Server to connect to.
Required? false
Position? named
Default value
Accept pipeline input? False
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
OUTPUTS
NOTES
Tags: Community, SqlWatch
Author: Ken K (github.com/koglerk)
Website: https://dbatools.io
Copyright: (c) 2018 by dbatools, licensed under MIT
License: MIT https://opensource.org/licenses/MIT
https://sqlwatch.io
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Install-DbaSqlWatch -SqlInstance server1
Logs into server1 with Windows authentication and then installs SqlWatch in the SQLWATCH database.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Install-DbaSqlWatch -SqlInstance server1\\instance1 -Database DBA
Logs into server1\\instance1 with Windows authentication and then installs SqlWatch in the DBA database.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Install-DbaSqlWatch -SqlInstance server1\\instance1 -Database DBA -SqlCredential $cred
Logs into server1\\instance1 with SQL authentication and then installs SqlWatch in the DBA database.
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Install-DbaSqlWatch -SqlInstance sql2016\\standardrtm, sql2016\\sqlexpress, sql2014
Logs into sql2016\\standardrtm, sql2016\\sqlexpress and sql2014 with Windows authentication and then installs
SqlWatch in the SQLWATCH database.
-------------------------- EXAMPLE 5 --------------------------
PS C:\\>$servers = "sql2016\\standardrtm", "sql2016\\sqlexpress", "sql2014"
$servers | Install-DbaSqlWatch
Logs into sql2016\\standardrtm, sql2016\\sqlexpress and sql2014 with Windows authentication and then installs
SqlWatch in the SQLWATCH database.
RELATED LINKS
https://dbatools.io/Install-DbaSqlWatch