From your description we would conclude that you are suffering from cephalgia fugax, also called momentary headache or ice-pick headache. History is usually sufficient for a diagnosis, but physical examination should rule out any associated neurological abnormality. A recent review of the literature reveals that patients describe the pain as shooting, darting, stabbing, or sharp. In most patients the pain lasts less than a minute, and it never lasts more than five minutes. Cephalgia fugax may occur several times a day or only occasionally.
Some patients report an associated shimmering of vision or lightheadedness with the attack.
The pain typically occurs in the temple or around the eye region, or in both sides of the head. There is no known treatment. Probably the biggest danger to the patient comes from unnecessary lab studies performed to diagnosed it. Be thankful your physician was able to recognize your problem and you were spared non-essential tests.