Cmdlets to provide and manage SQL servers for tests.
Generates a database name.
New-SqlTestDatabaseName [[-Prefix] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Generates a short random database name with an optional prefix. The generated suffix is based on a GUID.
New-SqlTestDatabaseName -Prefix 'test-'
Generates a database name with the specified prefix.
Captured output (random suffix redacted): test-<redacted>
Prefix to the database name.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: Test-
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
https://abbgrade.github.io/PsSqlTestServer/docs/New-SqlTestDatabaseName.html