A lot depends on just how narrowly you define the term "sorcery." I believe that what we call Sorcery or Necromancy was, in antiquity, mostly a matter of divination by means of raising the dead and compelling them to answer a question or convey a message to Something. The classic example would be the episode from the First Book of Samuel in which Saul employs the Witch of Endor to summon the spirit of the prophet Samuel. It's my understanding that the command in Leviticus that is usually glossed "Thou shalt not suffer a witch to live" is, more properly, "Thou shalt not suffer a sorceress to live" and refers specifically to the sort of activity described in First Samuel. (It is puzzling, then, that the Witch of Endor gets something of a sympathetic portrayal, as she shows kindness to Saul after he nearly swoons from his encounter with the shade of Samuel.)
Somewhere I read that the reasoning behind the commandment in Leviticus was an edict from the Lord that, when He had something to say, He was going to say it Himself, and He had no time for those pesky sorcerors and fortune tellers and false prophets. That would also be another example of the more general proscriptions against idolatry that appear, over and over, in the Tanakh.
If you haven't read it, a superb use of this ancient form of sorcery in fantasy appears in Gene Wolfe's Soldier of the Mist.