Advertisement
Guest User

Untitled

a guest
Sep 9th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. import pymssql
  2.  
  3. conn = pymssql.connect(server='******SQLEXPRESS',user = 'MEA*****',password='*****',database='BSEG')
  4.  
  5. cursor = conn.cursor()
  6.  
  7. cursor.execute('SELECT * FROM Table')
  8. print(cursor.fetchone())
  9.  
  10. conn.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement