Answer the question
In order to leave comments, you need to log in
How to output Invoke-SQLcmd result to Powershell gui form?
Good afternoon.
There is a script in which the request is nested. I sketched a GUI for the script, I really want to write the output of Invoke-sqlcmd into this very GUI. The output option with Out-GridView displays a separate window, but I would like to pass the output to an object on the form in the spirit:
$ListBox.text = Invoke-Sqlcmd -ServerInstance $serv -Username $nam -Password $pass -Query $quer
If you try to merge everything in textbox, on the output I get something systemic, obviously not a table.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question