Python pyodbc connect to Sql Server using SQL Server Authentication
问题 The window user details is different from the Sql Server user I log in. So I had tried to use pyodbc connect to the database using the username(Admin_JJack) and password. But the connection show fails for the Window User(Jack) and I don't know where goes wrong. my connection string : connection = pyodbc.connect( "Driver={"SQL Driver"};" "Server= "ServerName";" "Database="DatabaseName";" "UID="UserName";" "PWD="Password";" "Trusted_Connection=yes" ) pyodbc.InterfaceError: ('28000', "[28000]