It's not necessarily derogatory.
"Every trick in the book" means every method you can think of.
You can try every trick in the book to get your lawnmower working, get your teenager out of bed in the morning, or get your faucet to stop dripping. There is nothing bad about that.
It's the goal that determines whether it's good or bad.
Note that "Trick" doesn't always mean "a mean thing you do to someone." It can also mean "a way of doing something that's not well known." There's a trick to opening this box. What's the trick to keeping your cat off the table?
Student or Learner