When trying to connect to another service from your pods you must use the kubernetes internal DNS service. In the pod that is trying to connect to the host should look something like this instead localhost:
mssql-clusterip-srv.default.svc.cluster.local
if you uses other namespace to deploy your database and services, replace default for the correct value.