I am accessing Unix through putty (i.e. unix is installed on other server and i am accessing it remotely through putty). I am having SQL Server 2008 installed on my computer.
You may be able to google for some existing code, but read the above so you know what to look for. The only free interface is for java using jdbc. See the link above.