Guest User

Untitled

a guest
Dec 5th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import pymssql
  2. conn = pymssql.connect(host='117.103.192.45', user='vtcsmartcard', password='vtcsmartcard@2', database='kiosk.MonitorDB', as_dict=True)
  3. cur=conn.cursor()
  4. cur.execute("exec SP_GetServices 214")
  5. row=cur.fetchone()
  6. print row
  7. None
  8. cur.execute("SELECT * FROM SERVICES")
  9. row=cur.fetchall()
  10. for r in row:
  11. print r[0]
  12.  
  13. print row
  14. []
Add Comment
Please, Sign In to add comment