How does one convert a IDE hard drive to a SATA hard drive?

Converting an IDE Hard Drive to a SATA Hard Drive would depend upon the computer used. When using a Laptop, one has to install a SATA drive to the Motherboard via a pin converter.