PsSqlTestServer

Cmdlets to provide and manage SQL servers for tests.

View the Project on GitHub abbgrade/PsSqlTestServer

Get-SqlTestInstance

SYNOPSIS

Returns connection parameter for a SQL server.

SYNTAX

Get-SqlTestInstance [<CommonParameters>]

DESCRIPTION

Checks different versions of local db or creates a Docker container with a SQL server installed. Returns a object with the properties DataSource and ConnectionString.

EXAMPLES

EXAMPLE 1

Get-SqlTestInstance
ConnectionString                                            DataSource
----------------                                            ----------
Data Source=(LocalDb)\MSSQLLocalDB;Integrated Security=True (LocalDb)\MSSQLLocalDB

PARAMETERS

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

NOTES