Which library works best?

Not with the information given. Post the code you have tried(using code tags) so that we may see where it is you may have gone wrong. See: How to get the best out of this forum

You cannot run code from an SD card. you can only save or retrieve data from it. Code can only be uploaded to and run from the flash memory on the arduino board.