-
Notifications
You must be signed in to change notification settings - Fork 29
How to turn off warnings when Invoke-SqlQuery returns 0 rows? #144
In version 2 of SimplySql, when I issue Invoke-SqlQuery such that it returns no data, I now get the polite warning that "This occurs when the query has no select statement or invokes a stored procedure that does not return a resultset."
I test for that, so it's not a problem for me.
How do I turn this warning off?
All reactions
Answered by
mithrandyr
Apr 4, 2024
The cmdlets all support common parameters. So you can use -WarningAction Ignore to silence the warnings.
Replies: 1 comment 1 reply
The cmdlets all support common parameters. So you can use -WarningAction Ignore to silence the warnings.
All reactions
1 reply
Thanks so much!
All reactions
Answer selected by
kwein123
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment