pymssql无法在ubuntu 12上检索数据

pymssql无法在ubuntu 12上检索数据,ubuntu,pymssql,Ubuntu,Pymssql,pymssql模块无法在Ubuntu 12.04上检索结果,我该怎么办 Ubuntu 11.10(GNU/Linux 3.0.0-30-generic-pae i686): Ubuntu 12.04 LTS(GNU/Linux 3.2.0-23-generic-pae i686): 我也这么认为,但这似乎是ubuntu 12.04中FreeTDS和pymssql的兼容性问题 看这里。 tim@lbtim:~$ python Python 2.7.2+ (default, Jul 20 2012

pymssql模块无法在Ubuntu 12.04上检索结果,我该怎么办

Ubuntu 11.10(GNU/Linux 3.0.0-30-generic-pae i686):

Ubuntu 12.04 LTS(GNU/Linux 3.2.0-23-generic-pae i686):


我也这么认为,但这似乎是ubuntu 12.04中FreeTDS和pymssql的兼容性问题

看这里。

tim@lbtim:~$ python
Python 2.7.2+ (default, Jul 20 2012, 22:12:53)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pymssql
>>> conn = pymssql.connect(host='10.156.70.7')
>>> curr = conn.cursor()
>>> curr.execute("select name from sysobjects where type='u'")
>>> for tbname, in curr:
...     print tbname
...
spt_fallback_db
spt_fallback_dev
spt_fallback_usg
spt_monitor
spt_values
MSreplication_options
bo_aux_callmeet_registed
>>> curr.close()
>>> conn.close()
>>> exit()
tim@lbtim:~$
tim@lbtim:~$ python
Python 2.7.3+ (default, Apr 20 2012, 22:44:07)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pymssql
>>> conn = pymssql.connect(host='10.156.70.7')
>>> curr = conn.cursor()
>>> curr.execute("select name from sysobjects where type='u'")
>>> for tbname, in curr:
...     print tbname
...
>>> curr.close()
>>> conn.close()
>>> exit()
tim@lbtim:~$