Changed techniques for connecting to sql
Used correct hostname