0

I tried the below code to connect to SQL Server from Windows 10 and it ran successfully but now I'm trying to run the same code from Windows Server 2016 and it's giving me SSL error. The code:

    conn = pypyodbc.connect('Driver={SQL Server};'
                            'Server=server_name;'
                            'Database=db_name;'
                            'Trusted_Connection=yes;')

Exception it's throwing now is

pypyodbc.DatabaseError: ('08001', '[08001] [Microsoft][ODBC SQL Server Driver][DBNETLIB]SSL Security error')

I tried searching various solutions to this issue but I don't have access to password and username. The ODBC driver name on both, the server and my machine is SQL Server only. Still, connection is refused in case of server.

I'm unable to understand this. Can anybody suggest me a way to execute it successfully from the server? I tried pyodbc but getting same error.

James Z
  • 12,209
  • 10
  • 24
  • 44
Akanksha_p
  • 916
  • 12
  • 20

0 Answers0