Print Cursor Output question

12 views
Skip to first unread message

james simpson

unread,
Sep 10, 2012, 9:54:26 AM9/10/12
to pyodbc
I think there's a simple answer but displaying my ignorance here. I'm
using Python 2.7.3 IDLW with pydoc 3x

I think I've connected to my SQL Server 2005 and my SQL is good.

How do I display the actual data returned from my fetch? Been
searching for several hours but no joy...

Thanks. Jamie

>>> cursor.execute("select * from project")
row = cursor.fetchone()
if row:
print row

<pyodbc.Cursor object at 0x0167D678>
>>>
Reply all
Reply to author
Forward
0 new messages