Instead of sand, I have a friend that uses small ice cubes and rock salt. Seems to get a lot of the stuff off the inside. Swirling the carboys is kinda a job, tho. Just got to thinking, don't try this with a carboy that you have just had hot water in and don't rinse with hot water right after you do this. Don't want anybody hurt when glass cracks. Arne.
I remember people doing this to clean out coffee pots with stuck on/burnt coffee. Worked very well.
Sand doesn't sound good. I get the chills thinking about it - like some people get with nails on a chalkboard. Grinding sand does that to me.