Invoke-Sqlcmd does not seem to meaningfully support the -Verbose or -Debug switches - by brianary

Status : 

 


2
0
Sign in
to vote
ID 1721641 Comments
Status Active Workarounds
Type Suggestion Repros 0
Opened 8/27/2015 2:45:05 PM
Access Restriction Public

Description

Adding -Verbose or -Debug to Invoke-Sqlcmd doesn't appear to do anything.
Right now, scripts reasonably supporting a -Verbose parameter have to manually call Write-Verbose with typical information like the SQL string, which also means those values have to be built and stored prior to either the Invoke-Sqlcmd or Write-Verbose commands.
Sign in to post a comment.
Posted by ALevyInROC on 1/10/2017 at 7:11 PM
Supporting -WhatIf would be an added bonus.