Have got the same issue, code working properly on 11.04 but no way to get it work on 12.04
#!/usr/bin/env python
import _mssql
conn = _mssql.connect(server='192.168.1.xxx:1433', user='linux', password='linux', database='MYDB')
result = conn.execute_scalar("SELECT MediaLabel FROM T_MediaStatus")
print result
Have got the same issue, code working properly on 11.04 but no way to get it work on 12.04
#!/usr/bin/env python
import _mssql
conn = _mssql. connect( server= '192.168. 1.xxx:1433' , user='linux', password='linux', database='MYDB') scalar( "SELECT MediaLabel FROM T_MediaStatus")
result = conn.execute_
print result
conn.close()