commands

^

Get-DbaRandomizedType

Author Sander Stad (@sqlstad, sqlstad.nl)
Availability Windows, Linux, macOS

 

Want to see the source code for this command? Check out Get-DbaRandomizedType on GitHub.
Want to see the Bill Of Health for this command? Check out Get-DbaRandomizedType.

Synopsis

Get the randomized types and sub types

Description

Retrieves the types and sub types available

Syntax

Get-DbaRandomizedType
    [[-RandomizedType] <String[]>]
    [[-RandomizedSubType] <String[]>]
    [[-Pattern] <String>]
    [-EnableException]
    [<CommonParameters>]

 

Examples

 

Example: 1
PS C:\> Get-DbaRandomizedType

Get all the types and subtypes

Example: 2
PS C:\> Get-DbaRandomizedType -Pattern "Addr"

Find all the types and sub types based on a pattern

Example: 3
PS C:\> Get-DbaRandomizedType -RandomizedType Person

Find all the sub types for Person

Example: 4
PS C:\> Get-DbaRandomizedType -RandomizedSubType LastName

Get all the types and subtypes that known by "LastName"

Optional Parameters

-RandomizedType

Filter the randomized types

Alias
Required False
Pipeline false
Default Value
-RandomizedSubType

Filter the randomized sub types

Alias
Required False
Pipeline false
Default Value
-Pattern

Get the types and sub types based on a pattern

Alias
Required False
Pipeline false
Default Value
-EnableException

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.

Alias
Required False
Pipeline false
Default Value False