coderacheal / database-connection-config

This repo contains a notebook to help you set up a connection to a remote Microsoft SQL Server
0 stars 5 forks source link

Microsoft SQL connection error #2

Open Faith-theAnalyst opened 1 year ago

Faith-theAnalyst commented 1 year ago

I have tried to correct the correct the error, but it keeps recurring. Kindly assist.

----> 4 connection=pyodbc.connect(connection_string)

OperationalError: ('08001', '[08001] [Microsoft][ODBC Driver 17 for SQL Server]Named Pipes Provider: Could not open a connection to SQL Server [53]. (53) (SQLDriverConnect); [08001] [Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired (0); [08001] [Microsoft][ODBC Driver 17 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. (53)')

coderacheal commented 1 year ago

@Faith-theAnalyst Please check the connection string. Make sure you have a .env file with the right credentials. The server is online, and I retried this before sending this message. The credentials are part of the Sprint Instruction, so please double check them