connection.ConnectionTimeout = 0; // This is not working A value of 0 indicates no limit (an attempt to execute a command will wait indefinitely).