![Updated Free Tool: PowerShell Scripts for SQL Server 5.0: Added Center for Internet Security (CIS) Benchmarks - Blog - Blog - IDERA Community Updated Free Tool: PowerShell Scripts for SQL Server 5.0: Added Center for Internet Security (CIS) Benchmarks - Blog - Blog - IDERA Community](https://www.idera.com/~/media/Corporate/Images/Products/Galleries/powershellscripts-Large.png)
Updated Free Tool: PowerShell Scripts for SQL Server 5.0: Added Center for Internet Security (CIS) Benchmarks - Blog - Blog - IDERA Community
![How do I query a SQL Server DB using PowerShell, and how do I filter, format and output to a file? (Stupid Question 251-255) How do I query a SQL Server DB using PowerShell, and how do I filter, format and output to a file? (Stupid Question 251-255)](https://inlovewithcode.azureedge.net/wp-content/uploads/2013/10/sqlserver-powershell-filter4.png)
How do I query a SQL Server DB using PowerShell, and how do I filter, format and output to a file? (Stupid Question 251-255)
![SQL SERVER - Using PowerShell and Native Client to run queries in SQL Server - SQL Authority with Pinal Dave SQL SERVER - Using PowerShell and Native Client to run queries in SQL Server - SQL Authority with Pinal Dave](https://blog.sqlauthority.com/wp-content/uploads/2015/06/sql-ps-sample-01.jpg)