Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PS C:\Users\xuser> C:\users\xuser\Desktop\pooldistribution.ps1
- Exception calling "Open" with "0" argument(s): "A network-related or instance-s
- pecific error occurred while establishing a connection to SQL Server. The serve
- r 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 C:\users\xuser\Desktop\pooldistribution.ps1:49 char:17
- + $connection.Open <<<< ()
- + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
- + FullyQualifiedErrorId : DotNetMethodException
- Exception calling "Fill" with "1" argument(s): "A network-related or instance-s
- pecific error occurred while establishing a connection to SQL Server. The serve
- r 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 C:\users\xuser\Desktop\pooldistribution.ps1:69 char:30
- + $recordcount=$sqladapter.Fill <<<< ($results)
- + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
- + FullyQualifiedErrorId : DotNetMethodException
- Export-Csv : Cannot bind argument to parameter 'InputObject' because it is null
- .
- At C:\users\xuser\Desktop\pooldistribution.ps1:85 char:29
- + $overallrecords | Export-Csv <<<< "PoolDistribution.csv"
- + CategoryInfo : InvalidData: (:) [Export-Csv], ParameterBindingV
- alidationException
- + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M
- icrosoft.PowerShell.Commands.ExportCsvCommand
- Query complete
- PS C:\Users\xuser>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement