since I did not find a proper solution anywhere I did some research last night to get Mantis to work with IIS and SQL-Server 2008. After a lot of code tracking I finally came up with just a few code changes...
1. The SQL-Script generated by the installer does not work out, since it contains old "CREATE TABLE" instructions and all the historical changes over the last versions. The biggest problem ist that it generates DATETIMES with a default value and then tries to change them to INT... Use the SQL-Script from the attached zip instead and you'll be fine!
2. As mssql is not supported for PHP5.3 the best way to acces MSSQL-Server from PHP is SQLServerDriver_ForPHP20 from Microsoft http://www.microsoft.com/downloads/en/d ... ae6cf2ca05
3. Replace the two database API PHP-Pages in your Mantis web folder with the ones from the attached zip
4. change your config_inc.php to
Code: Select all
$g_session_validation = ON;
$g_hostname = '192.168.1.100'; //IP of your MSSSQL-Server
$g_db_type = 'mssqlnative';
$g_database_name = 'Mantis';
$g_db_username = 'user';
$g_db_password = 'password';
Windows Server 2008 Web-Edition, with IIS 7.0 and PHP-5.3.2-nts-Win32-VC9-x86
SQLServerDriver for PHP 2.0
MSSQL-Server 2008
Mantisbt-1.2.5
Just in case there are any further database issues that I did not find yet: Please let me know! I have left a debug output in adodb-mssqlnative.inc.php (line 477) that reports the failed query so you can run it against the database within SQL-Server-Management-Studio to see what is wrong...
Have fun!
Bernd