Hi @Sanjeev Gupta ,
This is a generic error message when sqlcmd can't connect because the server is not online.
Try to replace localhost with 127.0.0.1
Please check the logs for more info. Troubleshooting info: https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-troubleshooting-guide?view=sql-server-ver15#access-the-log-files
Best regards,
Seeya
If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar queries.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.