If your stables have no mains electric connection then the power from your solar panels will have to be stored in a battery so that you can use the lights whenever you use them (this is known as an "off-grid" system).
If you have mains electricity and install solar panels they will be...