У меня есть скрипт, который подключается к именованному экземпляру SQL Server 2005 с помощью osql Но скрипт выдает следующие ошибки:
[SQL Native Client]Named Pipes Provider: Could not open a connection to SQL Server [53].
[SQL Native Client]Login timeout expired
[SQL Native Client]An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
Соединительная часть скрипта показана ниже:
osql -E -S <servername>\<named_instance> -i D:\scripts\script1.sql -o D:\scripts\script1.txt
Мой вопрос: что является причиной этой ошибки и какое возможное разрешение?