Guest User

Untitled

a guest
Sep 20th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. [myserver]
  2. host = myserver
  3. port = 1433
  4. tds version = 7.0
  5.  
  6. tsql -S myserver -U username
  7.  
  8. #! /path/to/python/bins
  9.  
  10. import pymsql
  11. conn = pymssql.connect(host='myserver', user='username', password='password', database='database', as_dict=True)
  12. conn.close()
  13.  
  14. Traceback (most recent call last):
  15. File "./test.py", line 5, in <module>
  16. conn = pymssql.connect(host='myserver', user='username', password='password', database='database', as_dict=True)
  17. File "pymssql.pyx", line 456, in pymssql.connect (pymssql.c:6017)
  18. pymssql.InterfaceError: Connection to the database failed for an unknown reason.
Add Comment
Please, Sign In to add comment