与此问题https://stackoverflow.com/a/49689947/4794396
有关我能够解决那里列出的登录失败错误,但是在添加Trusted_Connection参数之后,出现了以下错误。任何想法如何解决这个问题?我按照Error 28000: Login failed for user DOMAIN\\user with pyodbc
上Microsoft文档的说明进行操作cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER='+server+';DATABASE='+database+';UID='+username+';PWD='+ password+';Trusted_Connection='+tc)
pyodbc.Error: ('HY000', "[HY000] [Microsoft][ODBC Driver 17 for
SQL Server]SSPI Provider: Server (MSSQLSvc/<server>:<port>@<domain>)
unknown while looking up 'MSSQLSvc/<server>:<port>@<domain>’
(cached result, timeout in 1073 sec) (851968) (SQLDriverConnect)")