If an employee comes and says she or he has a better off I let them take it. If they're looking, they're looking, and I want people who want to work with us.
I am not at all unhappy if someone comes and asks for a raise. I believe everyone is paid fairly, but if there's a mistake, well I'm glad to find out and fix it. But I'm happy to explain why the pay people are getting is probably fair.
I use hiring info to keep abreast of salaries: if candidates seem to need more than I had planned to offer then I level the appropriate employees up as well. I.e. you don't have to try to get a new job just to get a raise. It means people are paid fairly (e.g. your company's cap on raises is stupid). Apparently publishing everybody's pay adds stress for some reason, but I try to set the pay as if they were published -- so if someone does find out they won't be surprised ("Woah, Jane gets 20% more than me? Crap, I guess she is the one we all go to when we are having trouble finding the right algorithm; I should pick up my game").
Note that there is nothing wrong with looking around at other company's hiring pages, linkedin etc; it's no different from keeping your other skills up to snuff (learning new technologies or whatever). I just don't like being presented with what's essentially an ultimatum -- it means the asker isn't really thinking about the issue.