Can I call Write-Message? #7803
-
Hi, I want to request a feature update for Invoke-DbaDbUpgrade. I copied the current code and have started to update it to include the new feature. I can hack out the Write-Message code, but I would like to keep it to see the buried internal exception that it generates to verify it really works. Is there a way I can either use the Write-Message function or copy it's code to have my own version? I looked for Write-Message, but can't find it's code. Perhaps it's compiled in a DLL or something. BTW, the refresh view stuff in Invoke-DbaDbUpgrade alerted me to an issue in an upgrade for some views. I really appreciated the heads up. I was thinking that I need to test procedures as well. We used signed procedures sometimes, so added code is required to skip those and issue a warning. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@RandyInMarin , I think you're asking how can I call |
Beta Was this translation helpful? Give feedback.
@RandyInMarin , I think you're asking how can I call
Write-Message
locally. I'm not sure how to do that either. I was able to find what appears to be the code for it in a binary folder.