Okay so the solution was to find a dll of freeTDS for windows... the place I went was here... http://docs.moodle.org/20/en/Installing_MSSQL_for_PHP#Using_FreeTDS_on_Windows
I disabled mssql and included that .dll and everything starting working fine. So that is the fix for anyone else who racks their brain on this.