painful gas pains

Ah
this morning i woke up to really sharp pains in my upper stomach. i know they're gas pains because of location but I've never had them this bad before. any suggestions on how to get rid of them. i tried drinking water and walking around a bit but nothing helps.