2009-05-05 6 views
0

SQL Server 2005 기본 인스턴스에 연결하는 스크립트가 있습니다. 하지만 난과 연결되는 대신osql을 사용하여 SQL Server에 연결할 수 없습니다.

[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> -i D:\scripts\script1.sql -o D:\scripts\script1.txt 

내가 SQL Server 구성 관리자에서 네트워크 연결 보았다입니다. TCP/IP는 사용 가능하지만 Named Pipe는 사용 불가능합니다.

제 질문은이 오류의 가능한 원인과 해결책 일 수 있습니다.

답변

0

osql -E -S (로컬) 또는 osql -E -S를 시도하십시오. 나는 왜 그것이 때때로 작동하는지, 그리고 그렇지 않은지를 알아 내지 못했습니다.

관련 문제