Connect-SqlServer

Connects to the SQL server configured in the project.

Syntax

Connect-SqlServer [[-ProjectPath] <String>] [<CommonParameters>]

Description

Connects to the SQL server configured in the Bob.config of the specified project and returns a SMO server object which can be used to manage the server.

Parameters

-ProjectPath <String>

The path to project to use to get the name of the SQL server.

Position Required Default value Accept pipeline input Accept wildchard characters
1 false false false

Examples

-------------------------- EXAMPLE 1 --------------------------

$server = Connect-SqlServer

results matching ""

    No results matching ""