New
Back
Database Management

Reliable database management for modern, high-performance systems.

Back
Data Modernisation

Reliable database management for modern, high-performance systems.

Back
Data Engineering

Reliable database management for modern, high-performance systems.

Back
Analytics & Intelligence

Reliable database management for modern, high-performance systems.

Back
Data Strategy Consulting

Reliable database management for modern, high-performance systems.

Unable to connect Linux SQL Server 2019

Thirunavukkarasu RM
Published on
April 1, 2021

After successful installation of SQL server 2019 on linux you may experience below error message while accessing SQL Server through SQLCMD

Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Error code 0x2749

Workaround:

First you have to stop the SQL server using below command

sudo systemctl stop mssql-server 

Then use below command to edit the mssql service config to add the below parameters

Now add below lines and save the config on editor

[Service]
Environment="LD_LIBRARY_PATH=/opt/mssql/lib"

Press ctrl + X to save the config.

Now start the SQL service using below command

sudo systemctl start mssql-server

Now validate the SQL connection, it may work fine

Thirunavukkarasu RM

Thirunavukkarasu Ramasamy has 17+ years of experience in database management and the Microsoft Data Platform, with expertise in SQL Server, database architecture, and data solutions. As the Senior Solution Architect of Geopits, he focuses on building scalable data platforms, modernizing database environments, and delivering reliable enterprise data solutions.

Our Latest Blogs

From monitoring to modernization, GeoPITS provides expert database management services that enhance performance, strengthen security, and reduce operational costs.

Ready to Transform Your Data?

Geopits works alongside your team as a strategic partner, starting with stabilizing your current databases, then modernizing your data infrastructure, and ultimately helping you unlock the full potential of AI.

170

Happy Clients so far

2100+

Databases Managed

142+

Successful Migrations

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.