Get-ASMonitoringSqlDatabaseArchiveConfiguration

Get-ASMonitoringSqlDatabaseArchiveConfiguration

Returns the archive configuration (essentially, the connection string that identifies the archive destination database) from the specified monitoring database.

Syntax

Parameter Set: DatabaseNameAndServerName
Get-ASMonitoringSqlDatabaseArchiveConfiguration -Database <String> [-Server <String> ] [ <CommonParameters>]


Parameters

-ConnectionString<String>

Connection string to the primary monitoring database.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-Database<String>

Name of the primary database whose archive configuration you want to retrieve. Optional only if a connection string is specified.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-Server<String>

SQL instance name (e.g. MachineA or MachineA\SQLEXPRESS).


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None


Outputs

The output type is the type of the objects that the cmdlet emits.

  • DatabaseInfo


Examples

Show: