Author | Sander Stad (@sqlstad, sqlstad.nl) |
Availability | Windows, Linux, macOS |
Want to see the source code for this command? Check out Get-DbaRandomizedDatasetTemplate on GitHub.
Want to see the Bill Of Health for this command? Check out Get-DbaRandomizedDatasetTemplate.
Gets the dataset templates
Retrieves the templates from the default directory and if assigned custom directories
Get-DbaRandomizedDatasetTemplate
[[-Template] <String[]>]
[[-Path] <String[]>]
[-ExcludeDefault]
[-EnableException]
[<CommonParameters>]
PS C:\> Get-DbaRandomizedDatasetTemplate
Get the templates from the default directory
PS C:\> Get-DbaRandomizedDatasetTemplate -Template Personaldata, Test
Get the templates from thedefault directory and filter on PersonalData and Test
PS C:\> Get-DbaRandomizedDatasetTemplate -Path C:\DatasetTemplates
Get the templates from a custom directory
The name of the template to use.
It will go through the default templates to see if it's present
Alias | |
Required | False |
Pipeline | false |
Default Value |
Path or paths that contain template files
Alias | |
Required | False |
Pipeline | false |
Default Value |
Exclude the default templates
Alias | |
Required | False |
Pipeline | false |
Default Value | False |
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 |