Are you thinking of an actual rapier, or of a fencing foil? I used to think that foils were rapiers.
Thinking further, even just thinking of size/scope, most weapons sized for Medium creatures, seem unsuitable to harm a Gargantuan dragon. Can a dagger even get through the subcutaneous layer of...