I have installed unixodbc and mssql drivers on the centos machine , but i am not able to connecto to the remote database using isql database username password.
odbcinst -j
unixODBC 2.3.1
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /root/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
cat /etc/odbcinst.ini (this file is blank)
I created an entry in /etc/odbc.ini
[empower]
Driver=ODBC Driver 13 for SQL Server
Description=ODBC Driver 13 for SQL Server
DSN=dsnname
Trace=No
Server=servername
Port=1433
Database=db_env
ApplicationIntent=ReadOnly
isql dsnname username password gives the below error :
[ISQL]ERROR: Could not SQLConnect
Need to know if i am doing anything wrong.