Cannot connect to outside mssql database in production
Answer:
The server I was trying to connect to didn't have a CNAME set up in my corporate dns. So when I would switch environments some environments could see the server and others could not.