while connecting to my sql server sqlcmd is not working

sudharsan moorthy 1 Reputation point
2022-02-18T07:32:21.46+00:00

175751-capture.png

while connecting to my sql server it is showing this error. while investigating with
cmd:
odbcinst -j

it yielded:

unixODBC 2.3.7
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /home/azureuser/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8

tried executing :
sudo ln -s /usr/local/etc/odbcinst.ini /etc/odbcinst.ini
sudo ln -s /usr/local/etc/odbc.ini /etc/odbc.ini

it gave file exists error:

ln: failed to create symbolic link '/etc/odbcinst.ini': File exists

ln: failed to create symbolic link '/etc/odbc.ini': File exists

SQL Server on Azure Virtual Machines
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,062 questions
Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
709 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. sudharsan moorthy 1 Reputation point
    2022-02-18T07:32:50.963+00:00

    can anyone know how to solve this issue

    0 comments No comments