It is more than just the queries. PHP uses specific commands to execute queries for different DB's (Reference: http://php.net/mssql and http://php.net/mysql ). You would need to rewrite all of the db handler routines to talk to Microsoft SQL.