Depends on the dog.
I know a woman who was in a bar with an ounce in her purse and a K9 officer was there with his drug dog and she was petting him, and it did nothing.
From my own personal experience I hid multiple pipes, bongs, etc. in a small hole under a floor board in my barn before it...