Github repository: https://github.com/miguelaxcar/PHP-MSSQL-Server-Admin
Web based tool written in PHP by Luiz Miguel Axcar to build and run queries on a remote or local MSSQL (Microsoft SQL Server). Support for SQL code highlight (!), table browser, field browser, TOP records, most used tables, CSV results export, etc. Most tested in SQL 2000 version.
If you find some issue ther let me know and I help you fixing it.