Get-ClassificationDatabase
Published 25 September 2019
Gets the databases for a given instance.
Syntax
Get-ClassificationDatabase [-InstanceName] <string> [<CommonParameters>]
Description
Gets all databases for a given instance.
Parameters
-InstanceName
<String>
The fully-qualified name of the SQL Server instance. For a named instance, this should take the form 'fully-qualified-host-name\instance-name' (e.g. "myserver.mydomain.com\myinstance"). For the default instance on a machine, just the fully-qualified name of the machine will suffice (e.g. "myserver.mydomain.com").
Aliases | None |
Required? | true |
Position? | 1 |
Default Value | None |
Accept Pipeline Input | True (ByValue) |
Accept Wildcard Characters | false |
-ProgressAction
<ActionPreference>
{{ Fill ProgressAction Description }}
Aliases | None |
Required? | false |
Position? | named |
Default Value | None |
Accept Pipeline Input | False |
Accept Wildcard Characters | false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
-
None.
You cannot pipe input to this cmdlet.
Return values
The output type is the type of the objects that the cmdlet emits.
-
An array of hashtables with the following properties:
- id: string
- name: string
- instanceName: string
- instanceId: string
Examples
-------------------------- EXAMPLE 1 --------------------------
Get-ClassificationDatabase -instanceName "sqlserver\sql2016"
Fetches all databases from instance "sqlserver\sql2016".