Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

running sql query with powershell

$
0
0

Hi,

I need to run the following sql query from a powershell script and export the results to a csv file for further processing.

SELECT name, label, class_name, severity
FROM tng_managedobject
WHERE severity <> 0 and (class_name like 'Plaza_%' or class_name like 'ORT_%' or class_name like 'Security_%')

Is there any inbuilt power shell function which I can use to run my sql query. I appreciate your help and support.

Thanks,


Viewing all articles
Browse latest Browse all 21975

Trending Articles