diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index bdcd78ef97..2f78307315 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -286,6 +286,7 @@ p a {
[Fix] Use the localised guest name for quotes (Bug #12483)
[Fix] Added post anchor to links in default warning message (Bug #12489)
[Fix] Allow 5 digits in editing time fields (Bug #12489)
+ [Fix] MS SQL DBAL drivers now write over extension limitations, they are too low for most installations (Bug #12415)
diff --git a/phpBB/includes/db/mssql.php b/phpBB/includes/db/mssql.php
index 1077a005b8..44ea132a8f 100644
--- a/phpBB/includes/db/mssql.php
+++ b/phpBB/includes/db/mssql.php
@@ -36,6 +36,8 @@ class dbal_mssql extends dbal
$this->dbname = $database;
@ini_set('mssql.charset', 'UTF-8');
+ @ini_set('mssql.textlimit', 2147483647);
+ @ini_set('mssql.textsize', 2147483647);
$this->db_connect_id = ($this->persistency) ? @mssql_pconnect($this->server, $this->user, $sqlpassword, $new_link) : @mssql_connect($this->server, $this->user, $sqlpassword, $new_link);
diff --git a/phpBB/includes/db/mssql_odbc.php b/phpBB/includes/db/mssql_odbc.php
index 7770862447..6803228e13 100644
--- a/phpBB/includes/db/mssql_odbc.php
+++ b/phpBB/includes/db/mssql_odbc.php
@@ -43,8 +43,7 @@ class dbal_mssql_odbc extends dbal
$this->server = $sqlserver . (($port) ? ':' . $port : '');
$this->dbname = $database;
- //
- // @ini_set('odbc.defaultlrl', '32M');
+ @ini_set('odbc.defaultlrl', 65536);
$this->db_connect_id = ($this->persistency) ? @odbc_pconnect($this->server, $this->user, $sqlpassword) : @odbc_connect($this->server, $this->user, $sqlpassword);