If I can ping my DB server, is my SQL Server connection guaranteed to work?
I am using a default connection string in my code.
My program runs fine locally but overseas sites are having issues and I am wondering if SQL might be using a TCP or UDP port that is still blocked.
Here is the connection string “Data Source=xxxx.xxxx.com; Initial Catalog = xxxxx; User ID=xxxxx;password=xxxxx”
As far as I understand your question you are asking whether ICMP “ping” packet which returns guarantees you can open a connection on a particular TCP port? The answer is NO. It is also not the other way around – “ping” packets might be blocked by a firewall.