S
S
soulyaris2020-09-23 20:13:23
SQL
soulyaris, 2020-09-23 20:13:23

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

1 answer(s)
M
MaxKozlov, 2020-09-23
@MaxKozlov

soulyaris , If you would at least bring your code, it would be easier to advise at least something.
And now a spherical horse in a vacuum is being discussed here.
But even now I can suggest you read
https://learn-powershell.net/2017/05/09/powershell...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question