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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -