Guest User

Untitled

a guest
Apr 12th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. server = 'tcp:myserverinst1'
  2. database = 'mydatabase'
  3. username = 'myusername'
  4. password = 'mypassword'
  5.  
  6. cnxn = pyodbc.connect('DRIVER={ODBC Driver 13 for SQL Server};SERVER=' + server + ';DATABASE=' + database + ';UID=' + username + ';PWD=' + password)
  7.  
  8. pyodbc.OperationalError: ('HYT00', u'[HYT00] [unixODBC][Microsoft][ODBC Driver 13 for SQL Server]Login timeout expired (0) (SQLDriverConnect)')
  9.  
  10. [ODBC Driver 13 for SQL Server]
  11. Description=Microsoft ODBC Driver 13 for SQL Server
  12. Driver=/opt/microsoft/msodbcsql/lib64/libmsodbcsql-13.1.so.9.1
  13. UsageCount=1
Add Comment
Please, Sign In to add comment