This script can be used to query an SQL database $SqlConnection = New-Object System.Data.SqlClient.SqlConnection $SqlConnection.ConnectionString =...
Query a SQL database with Powershell
read more
This script can be used to query an SQL database $SqlConnection = New-Object System.Data.SqlClient.SqlConnection $SqlConnection.ConnectionString =...
With this simple script, you will be able to get the server names on which the MS SQL Server service is installed. First, an array is built with the...