PsDac connects DacFx and PowerShell. It gives you PowerShell Cmdlets with the power of Microsoft.SqlServer.DacFx.
Connects a database instance using DacServices.
Connect-DacService [-ConnectionString] <String> [-AccessToken <String>] [<CommonParameters>]
Connect-DacService [-DataSource] <String> [-AccessToken <String>] [<CommonParameters>]
Creates a DacServices instance, that can be used by commands. Unfortunately, the parameters are not checked while connecting, but while usage.
PS C:\> Connect-DacService -DataSource '(LocalDb)\MSSQLLocalDB'
Creates a dac service for localdb.
Specifies a token for authentication.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specifies the connection string to use. The DataSource, Hostname or Instance must be specified as Server.
Type: String
Parameter Sets: ConnectionString
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specifies the datasource or server name to connect to.
Type: String
Parameter Sets: Properties
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
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.