import dbi, odbc conn = odbc.odbc('mydsn/login/password') c = conn.cursor() c.execute('select clientid, name, city from client') print c.fetchall()