True True Exception calling "ExecuteReader" with "0" argument(s): "Invalid object name 'LadaFin.dbo.Finance'." At D:\Media\get_counts.ps1:1 char:550 + ... LECT COUNT(*) FROM LadaFin.dbo.Finance';$r=$q.ExecuteReader();$r.Read ... + ~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : SqlException Exception calling "Read" with "0" argument(s): "Invalid attempt to call Read when reader is closed." At D:\Media\get_counts.ps1:1 char:572 + ... (*) FROM LadaFin.dbo.Finance';$r=$q.ExecuteReader();$r.Read();$s+='|L ... + ~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : InvalidOperationException You cannot call a method on a null-valued expression. At D:\Media\get_counts.ps1:1 char:582 + ... teReader();$r.Read();$s+='|LadaFin.Finance:'+$r[0].ToString();$r.Clos ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull True Exception calling "ExecuteReader" with "0" argument(s): "The server principal "ladadbm" is not able to access the database "hmaildb" under the current security context." At D:\Media\get_counts.ps1:1 char:834 + ... COUNT(*) FROM hmaildb.dbo.hm_messages';$r=$q.ExecuteReader();$r.Read ... + ~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : SqlException Exception calling "Read" with "0" argument(s): "Invalid attempt to call Read when reader is closed." At D:\Media\get_counts.ps1:1 char:856 + ... FROM hmaildb.dbo.hm_messages';$r=$q.ExecuteReader();$r.Read();$s+='|h ... + ~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : InvalidOperationException You cannot call a method on a null-valued expression. At D:\Media\get_counts.ps1:1 char:866 + ... ecuteReader();$r.Read();$s+='|hmaildb.msgs:'+$r[0].ToString();$r.Clos ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull LadaUser.User:1235|LadaCore.Order:75939|Ladaer2.User:185