My longest shot has been out to 300 yards with a 24" barreled Savage 7mm Rem Mag in the High Plains.
Barrel length however isn't what allowed me to make the shot. Understanding the ballistics of the gun and ammo I was shooting is the key.
"He who laughs last, laughs dead." Homer Simpson