Нагуглил
, что это делается из комстроки с помощью sqlcmd. Но sqlcmd работать отказалась:Цитата:
HResult 0x2, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server [2].
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establi
shing a connection to the server. When connecting to SQL Server 2005, this failu
re may be caused by the fact that under the default settings SQL Server does not
allow remote connections..
Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
Разрешил удаленные соединения
(вместо добавления исключения просто отключил Windows Firewall). Ничего не изменилось - по-прежнему та же ошибка при запуске sqlcmd без параметров. Сама программа выдает, судя по всему, такую же ошибку. Куда копать?