Exception calling "Open" with "0" argument(s): "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)" At D:\Media\sql2_dbs.ps1:1 char:206 + ... _Connection=False;Encrypt=False;Connect Timeout=5');$c.Open();$t=$c.G ... + ~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : SqlException Exception calling "GetSchema" with "1" argument(s): "Invalid operation. The connection is closed." At D:\Media\sql2_dbs.ps1:1 char:216 + ... se;Connect Timeout=5');$c.Open();$t=$c.GetSchema('Databases');$s='';$ ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : InvalidOperationException Cannot index into a null array. At D:\Media\sql2_dbs.ps1:1 char:261 + ... ();$t=$c.GetSchema('Databases');$s='';$t.Rows|%{$s+=$_[0]+','};$c.Clo ... + ~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : NullArray