Both are harmful if done excessively. You have to keep track of how long you stand or sit to avoid musculoskeletal disorders at work. Do this by using sit-stand desks. Alternate between sitting and standing every few hours.