PsSqlTestServer

Cmdlets to provide and manage SQL servers for tests.

View the Project on GitHub abbgrade/PsSqlTestServer

Test-SqlTestLocalDb

SYNOPSIS

Tests if a localDb-based SQL Server can be created.

SYNTAX

Test-SqlTestLocalDb [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Checks whether PsSqlLocalDb and the [SqlLocalDB utility](https://learn.microsoft.com/sql/tools/sqllocaldb-utility) are available.

EXAMPLES

EXAMPLE 1

Test-SqlTestLocalDb
Checks whether LocalDB instances can be used on this computer.
Illustrative output: $true when the LocalDB utility is available and $false otherwise.

PARAMETERS

-ProgressAction

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

bool

NOTES

https://abbgrade.github.io/PsSqlTestServer/docs/Test-SqlTestLocalDb.html