-
Notifications
You must be signed in to change notification settings - Fork 0
Start UdeDbSsms
Starts SQL Server Management Studio (SSMS) with the specified JIT access credentials.
Start-UdeDbSsms [-Id] <String> [[-Version] <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
This function starts SQL Server Management Studio (SSMS) and connects to the specified database using the JIT access credentials stored in the local cache.
Start-UdeDbSsms -Id "demo"
This will start SSMS version 20 and connect to the database using the JIT access credentials for the ID "demo".
Start-UdeDbSsms -Id "demo" -Version 21
This will start SSMS version 21 and connect to the database using the JIT access credentials for the ID "demo".
Start-UdeDbSsms -Id "demo" -Version 22
This will start SSMS version 22 and connect to the database using the JIT access credentials for the ID "demo".
The unique identifier for the JIT access credentials.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe version of SSMS to use (20, 21 or 22).
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: 20
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
You need to have persisted JIT credentials using Set-UdeDbJitCache before using this function.
Author: Mötz Jensen (@Splaxi)