Connecting to SQL Server with pypyodbc
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to send unicode to SQL Server with Python 2.7. I failed with pymssql . I'm now trying to get pypyodbc working (as opposed to pyodbc ), as it gives working unicode examples . The problem is that the connection string in the example doesn't look like anything I recognize. I looked at this , and, after a little trial and error, constructed this string: conn = pypyodbc.connect("DRIVER={SQL Server};SERVER='MyServer';UID='me';PWD='MyPassword';DATABASE='db'") Got back a DatabaseError focused on the connection string: C:\Anaconda\lib\site