A healthcare provider will give you this injection. Dexamethasone injection is usually given for only a few days. Your dosage needs may change if you have any unusual stress such as a serious illness, fever or infection, or if you have surgery or a medical emergency.