2016-09-19 4 views
1

에 연결할 수 없습니다 :파이썬은 내가 MS SQL에 연결하려고 할 때이 오류가있어, MS SQL

> pyodbc.Error: ('08001', '[08001] [Microsoft][ODBC Driver 13 for SQL 
> Server]SQL Server Network Interfaces: Error Locating Server/Instance 
> Specified [xFFFFFFFF]. (-1) (SQLDriverConnect); [HYT00] 
> [Microsoft][ODBC Driver 13 for SQL Server]Login timeout expired (0); 
> [08001] [Microsoft][ODBC Driver 13 for SQL Server]A network-related or 
> instance-specific error has occurred while establishing a connection 
> to SQL Server. Server is not found or not accessible. Check if 
> instance name is correct and if SQL Server is configured to allow 
> remote connections. For more information see SQL Server Books Online. 
> (-1)') 

어떻게이 오류를 해결할 수 있습니다 마지막으로 데이터베이스에 연결?

답변

1

내 경우에는 서비스에서 SQL Server (SQLEXPRESS)을 활성화하여 해결되었습니다. 컴퓨터가 시작될 때 자동으로 켜지지 않습니다.

enter image description here

+2

참고하시기 바랍니다. SQL Server 구성 관리자 http://i.stack.imgur.com/NV6FM.png에서 모든 SQL Server 인스턴스/서비스의 (단순한) 개요를 확인할 수 있습니다. – DenStudent

+0

감사! 그게 훨씬 더 직관적이야. –