daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest Sep 20th, 2016 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top