What exam could be possible for my stiff neck? It been 10months.

Arthritis vs disc. There are few details provided. Two of the most common causes of a stiff, painful neck that lasts several months is arthritis of the neck or a herniated disc in the neck. Sometimes, otherwise benign muscle spasms can last a long time. Either way, you should consider an evaluation by your doctor if it has not responded to time, rest, tylenol, (acetaminophen) etc.
A physical exam. Get a good pt or orthopedist to evaluate and recommend further follow up.