First of all you have to make sure that the compressor has sidechain functionality (many don't). There should be some button on it to accept a sidechain signal. Once you've engaged that button, Sonar will add the compressor to its list of possible send destinations in the send menus.
Then it's just a matter of enabling a send on the vocal track, setting its destination to the compressor in question (it should be on the list) and then adjusting the sidechain compressor to taste on the reverb track.
So from your vocal track you should have two sends:
- A send to the reverb bus
- A send to the compressor on the reverb bus
The important things to note are that the compressor MUST be sidechain-enabled, and you MUST create a send from the track you intend to use as the sidechain source (or "key" as it is known) to the compressor. Only then will the sidechain work.
If you set things up as described, what timidi said above about everything being sent to the reverb bus ducking the reverb will
not be true. The only thing ducking the reverb will be the signal which is sent to the sidechain input of the compressor, and that will
only be the vocal in your case.