Wowsers! That could have turned out badly -- I'm glad you caught it before something awful happened.
My kitty stays out of my quilting room, even though I leave the door open. He sits there wistfully staring in, but for some reason, will never come in (thankfully). I think he doesn't like the feel of tile under his feet, maybe.
Yikes, thank goodness dachshunds don't eat needles.
My sister had a pug that would eat anything. They ended up taking him to the vet for emergency surgery on multiple occasions because of things that he had eaten -- he had a special fondness for coins. They had to super-pug-proof their house, but he still managed to find stuff to eat sometimes.