Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Combining data comming from a Query in different SQL servers in the same data structure

$
0
0

Hi guys, I need your help in powershell + SQL. My problem is the following. I have a function that query some SQL servers. The query is the same in all cases. Basically in the functions, I do

  1. I define a Dataset as $DatasetLocal = New-Object System.Data.DataSet

  2. With the data returned from the Query $SqlAdapter.Fill($DatasetLocal)

  3. I return $DatasetLocal

If this function return, for example, 3 times $DatasetLocal ... how can I put all three $DatasetLocal in the same data estructure?


Viewing all articles
Browse latest Browse all 6937

Trending Articles