Oh sorry to hear about it..
I'm guessing that because you will be sitting down heaps in an office its not doing your back any good.
One of the best ways to do it it actually moving...
Here is an analogy...your spine is a delicate part of your body and it has its natural curvature where in that position its all good and comfortable, but when you sit all the time, especially hunched or rounded shoulders your spine position changes.
its like if you bend your thumb backwards for a period of time it gonna hurt or ache after a period of time...that what like for your back..if you sit in a position that not good over time the back isn't going to like it and start hurting...so essentially its telling you to move into a better position.
Same with your spine..you can get these rolls which you can place at the curvature of your back to make you sit more upright and not as hunched over to help if you do need to sit for prolonged periods.
In Australia that are called McKenzie Lumbar Roll, not sure where you are from, so might be called something different
Also it depends on the type of pain you are getting..is it sharp, stabbing, or a aching pain..does it radiate down into your legs or does it stay in the same area??
Trying to move around every 1 hrs will help, ie: standing up, leaning fwd or backwards - which ever way helps relieve the pain.
Sorry for this long reply, this is coming from a physio student perceptive... you can find more information about what i have just wrote
http://www.spine-health.com/wellness/exerc...n-and-neck-pain its not a really good summary but may help
Also if you strengthen you core muscles around your stomach it will also help with back pain...as you tummy muscles surround you whole abdominal region and wrapps around like a corset...if its it nice and tight it can support your spine and relieve some of the stress of the back muscles to support your spine...but if they are weak it makes your back muscles work harder and cause problems... so they say pilates is really good in strengthening those core muscles..
Hope it helps either way!