from com.ziclix.python.sql import zxJDBC conn = zxJDBC.connect("jdbc:sqlserver://;serverName=localhost", "sa", "P@ssW0rd", "com.microsoft.sqlserver.jdbc.SQLServerDriver") cur = conn.cursor() cur.execute("SELECT 'Hello, JDBC Type4 World!' AS Message") rows = cur.fetchall() for row in rows: print row[0] conn.commit() cur.close() conn.close()