Resolved the non-working connection to remote sql server