python - Can't connect to MSSQL server from CentOS using pyodbc -


i creating python service data mssql server, , connection string goes follows,

connection_string = 'driver={sql server native client 11.0};server=192.168.2.45;database=dialogic;uid=smsuser;pwd=sms;' 

when tried host same service on linux machine , returning error saying client missing , followed documentation , installed connecting-to-sql-server-from-rhel-or-centos per steps.

now getting error saying "('hyt00', '[hyt00] [unixodbc][microsoft][sql server native client 11.0]login timeout expired (0) (sqldriverconnect)')"

here code:

sqlhandler.py

connection_string = 'driver={sql server native client 11.0};server=mysqlserverdatabase;database=dialogic;uid=smsuser;pwd=sms;' 

how solve this


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -