现象如:
解决办法:
把下如中的配置启动!
注意:重启sqlserver
事例:
import pymssql
conn = pymssql.connect(host='127.0.0.1:1433',user='sa',password='123456',database='NEWPFJDB',charset='UTF-8')
cursor = conn.cursor()
cursor.execute('select top 5 * from t_medchestitems')
for i in cursor.fetchall():
print (i)
cursor.close()
conn.close()