Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Аватара для AZABAZA

Пользователь


Сообщения: 69
Благодарности: 0

Профиль | Отправить PM | Цитировать


Kazun,

2-ой пункт куда прописать?

Если просто закинуть до $body то отваливается ошибка

Код: Выделить весь код
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 fou
nd 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 line:104 char:15
+     $conn.Open <<<< () 
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException
 
Exception calling "Fill" with "1" argument(s): "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not fou
nd 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 line:109 char:19
+     [void]$da.fill <<<< ($ds) 
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

Отправлено: 12:23, 27-04-2015 | #4