What do you get if you change the 'for' loop to:
for r in conn: print r
or the query and the 'for' loop to:
conn.execute_query('select getdate() as "currentDate"')
for r in conn: print r
Does that work?
Regards,
Andrzej
> Still no results are printed.
What freetds.conf settings are in effect?
Regards,
Andrzej
Everything looks perfect. Unless there's incompatibility between this
new freetds you use and pymssql. I tested various versions up to, and
including, 0.82, but not this fresh dev build. Here are my settings:
Compile-time settings (established with the "configure" script)
Version: freetds v0.82
freetds.conf directory: /etc
MS db-lib source compatibility: no
Sybase binary compatibility: no
Thread safety: yes
iconv library: yes
TDS version: 7.0
iODBC: no
unixodbc: yes
Are you able to downgrade freetds to 0.82 stable and test if then
those queries are ok?
Regards,
Andrzej
Thanks for your feedback, I'll look what changed and what can possibly
be wrong in pymssql.
Regards
Andrzej