How to connect sql to joomla

Yes, I have xampp installed on my pc. But what I mean is, I have a program which I created using SQL server but I really dont know how to use it on my joomla site. Any idea please?