A surgical fastener applying device for releasable connection to an end effector is provided. The surgical fastener applying device includes an elongated body portion having an outer tube and an inner shaft assembly. The inner shaft assembly defines a non-circular bore in a distal end thereof. The inner shaft assembly is longitudinally movable through the outer tube. The outer tube and the inner shaft assembly define corresponding openings extending radially therethrough. The surgical fastener applying device includes a detent movable within the openings of the elongated body portion. The detent floats between the end effector and the elongated body portion to enable selective connection between the end effector and the elongated body portion.