Link to home
Start Free TrialLog in
Avatar of chathura Perera
chathura Perera

asked on

FreeTDS problem

hi
i'm trying to connect to a Microsoft SQL Server database from one of our Python applications running under Linux.
i followed below tutorial in this link. http://www.tryolabs.com/Blog/2012/06/25/connecting-sql-server-database-python-under-ubuntu/
i had installed FreeTDS, UnixODBC, pip, pyodbc. and i also had setup server in freeTDS's Setting. but when i try to run this code tsql -S sqlserver -U <username> -P <password> , it gives me error
bash: tsql: command not found..

can you give me step by step guidance to resolve this problem because i'm new to linux.
thanks in advance
Avatar of PortletPaul
PortletPaul
Flag of Australia image

WHERE did you try that bash command from?

in other words, did you try it from some random folder, or did your execute it from the folder where tsql is installed?

note it's over 25 years (maybe more) since I've used any *nix
this about the only thing I can offer
Avatar of chathura Perera
chathura Perera

ASKER

tsql -S sqlserver -U <username> -P <password>
i had tried this command from LXterminal
root@raspberrypi:/home/pi?
Have you tested using those 'credentials' elsewhere to make sure they work?
SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thank you all