我已经下载了 Pymssql 以连接到 sqlserver db,但连接字符串抛出 error-pymssql.connect(pymssql.c.:7990)
import pymssql
pymssql.connect(host='username\SQLEXPRESS',user='username',password='pwd',database='master')
有人有幸连接到 sqlserver 吗?
Error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pymssql.pyx", line 556, in pymssql.connect (pymssql.c:7990)
raise OperationalError(e[0])
pymssql.OperationalError: (20009, 'Net-Lib error during Unknown error')