So, here is the situation. I installed all the required libraries. Now I can connect to MSSQL server from shell and run all my queries. But...When I try to use it through PHP, there is no luck. I don't even get an error. It apparently connects to the db server ass well but doesn't loop through the result set. Any ideas? Thanks, Usman