Quando tento me conectar ao MS SQL, recebo este erro:
> 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)")
Como posso resolver esse erro e, finalmente, conectar-me ao banco de dados?
Respostas:
1 para resposta № 1No meu caso, foi resolvido ativando SQL Server (SQLEXPRESS)
nos serviços. Acontece que ele não liga automaticamente quando o computador é ligado.