Can Compare be used with a WhatIf/Confirm command?
MKZeke
Posts: 5
Hi,
I have been working with using Compare in PowerShell, and I was just introduced to the WhatIf and Confirm commands. I figured I might try playing around with Compare and those commands since they seemed like they may be pretty useful, but I wasn't able to get any results out of it. Is there a way that SQL Compare can be used with those commands?
Thanks,
Zach
I have been working with using Compare in PowerShell, and I was just introduced to the WhatIf and Confirm commands. I figured I might try playing around with Compare and those commands since they seemed like they may be pretty useful, but I wasn't able to get any results out of it. Is there a way that SQL Compare can be used with those commands?
Thanks,
Zach
Comments
Thanks for your post!
Compare command line does not support -whatif and -confirm commands- those commands are part of the Powershell cmdlet framework and Compare was not made using the framework.
That would probably be a useful thing to implement in the future, and you can request it here https://redgate.uservoice.com/forums/141379-sql-compare
Kindly,
Technical Sales Engineer
Redgate Software