osql을 사용하여 SQL Server 2005 인스턴스에 연결하는 스크립트가 있습니다.인스턴스 이름이 SQL Server 2005 인 인스턴스
osql -E -S <servername>\<named_instance> -i D:\scripts\script1.sql -o D:\scripts\script1.txt
내 질문은 : 어떤이 오류의 원인과 가능한 해상도는 무엇
[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.
스크립트의 연결 부분은 아래와 같습니다 그러나 스크립트는 다음과 같은 오류가 발생합니다?
편집 된 버전을 참조하십시오. 코드 아이콘을 클릭하는 것을 잊어 버린 것처럼 보입니다. – titanium
나는 가능한 원인을 이미 발견했다. SQL Server 구성 관리자를 살펴 보았습니다. 명명 된 인스턴스 서비스가 중지되었습니다. 어쩌면 우리 팀의 누군가가 적절한 티켓을 거치지 않았거나 전자 메일을 통해 통지를 전달하지 않았을지라도이를 의도적으로 중단했을 수도 있습니다. – titanium