This is a subject that comes up every year when fairly new gardeners see red wasp looking things dive bombing their squash plants. The subject came up on one of my posts in another thread. I decided that instead of hijacking that thread to go ahead and start the inevitable squash vine borer thread.
I'm protecting my squash this year with netting which I simply lower from the top down each side of my two beds. It does protect the plants, but it also requires hand pollination of the squash. That isn't a big deal since it only takes about fifteen minutes each morning to pollinate my two beds. I would be hand pollinating anyhow since the natural pollinators haven't made an appearance yet.
Most people want to know what the best way to control the SVB is and I think it is the netting. Over the years, I've never found a pesticide or insecticide that is very effective. If you want to point the sprayer straight up in the air, you may hit some of the moths and they may die, but unless you want to stand in your garden all day, every day; pesticides simply don't seem to work. They do have some new environmentally friendly ones out this year that supposedly work, but I chose to go with the netting instead.
I remember one gardener who claimed to have the perfect borer control. When asked what it was, he said he just uses a tennis racquet. He said he hits them as they go into their dive bomb routine and sends them into the next county. Other than netting, that is probably the most effective control I've seen.