How long does it take fo medication to alleviate back pain?

It depend . What the cause of the back pain, disc problem, muscle problem and the kind of medication use (fast acting, short acting). If the acute or chronic in type?